An equilateral prism deviates a ray through 40∘ when the angle of incidence on both the surfaces differs by 20∘.The angles are