The light is passing from the air to the medium x. You may try to change the angle of incidence and also the refractive index for simulation of different results. Hope you enjoy the journey of refraction^^!
Given that now a light ray pass into the water with refractive index 1.33. Try to find the refracted angle by using the applet.