(a) When light enters from denser to rarer medium, the light bends away from the normal.
(b) when light enters from rarer to denser medium, the light comes towards the normal.
What happens to light when it enters a rarer medium from a denser medium?