A ray of light passes from air to water to glass to air. Given that…