See the explanation.
[Sample Question] There is an interface of air and water, and light traveles toward the water.
If the angle of incidence is 45°, what is the angle of refraction?
Assume the relative refractive index of water is
[How to solve?]
Using Snell's law helps you with these types of questions.
In the sample question, substitute