A ray of light traveling from a rectangular glass block of refractive index 1.5 into air strikes…