A ray of light is incident obliquely on a glass slab

A ray of light is incident obliquely on a glass slab. Draw a ray diagram showing the path of the light ray. Clearly, mark angle of incidence, angle of refraction, angle of emergence and lateral displacement of the ray. Give a formula to find refractive index of glass slab in terms of r angle of incidence and angle of refraction.