Because of their density of the medium if the density of the second medium is more than the first medium then it bend to towards the normal or the density of the second medium is less than the first then its bend away from the normal 
1 4 1
1>Speed of light is different in different media.
2>Whenever light travels from 1 point to another , it always follows the minimum time path.
The phenomenon is called Refraction of Light.
1 5 1