State the conditions under which total internal reflection occurs. One face of a prism with a refracting angle of 30° is coated with silver. A rayincident on another face at an angle of 45° is refracted and reflected from the silver coated face and retraces its path. Find the refractive index of the material of the prism.