The velocities of light in air and glass are 3.0 x 108ms-1 and 2.0 x…