When light passes through two media x and y of refraction indices 1.51 and 1.33…