A rectangular glass prism of thickness d and absolute refractive index n is placed on…