That equation (Snell's law) does describe the refraction of a light ray as it passes from one medium to the next.
However, in this problem we want to know how refraction at a single surface creates an image. You can use Snell's law to derive an expression that tells how an image is formed for light refracting from a surface. Your textbook probably does this for you and gives you the final result, which is something like:
[tex]
\frac{n_1}{p}+\frac{n_2}{q} =\frac{n_2-n_1}{R}[/tex]
Many books use many different symbols for the quantities in the denominators, so look for a section titled something like "image formed by refraction" to find out how it's written in your book. (The section is commonly between the section on spherical mirrors and thin lenses.)
Once you find it, you'll need to interpret what the symbols mean, and then apply it to your problem. What do you get?