How does the change in the direction of a ray when passing from one medium to another depend on the speed

How does the change in the direction of a ray when passing from one medium to another depend on the speed of propagation of light in them?

If the beam passes from a medium in which the speed of light is greater into a medium in which the speed of light is lower, the angle of refraction is less than the angle of incidence (b <a). The greater the difference in speed, the smaller the angle of refraction. If the beam passes from a medium in which the speed of light is lower to a medium in which the speed of light is higher, the angle of refraction is greater than the angle of incidence (b> a).

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.