Which property of a wave remains constant when the wave travels from one medium into…