The water bends everyone's path into a normal line drawn perpendicular to the shoreline, as the people still on the shore are bent farther away from the shoreline than those in the water.
The same thing happens to a ray of light as it moves from air to water, or from a fast medium to a slow
one: it bends toward the normal.
Light does just that when moving between media. It takes the path that takes the least amount of time when you consider the difference in speed between the media.
For example, imagine you are looking out the window. You have air, glass, and then air again. Glass is denser than air, so light from the outside travels from a fast medium, through a slow medium, and back into a fast medium. The light takes its way from the outside to your eye, which spends the least time
learn more about refraction below
https://brainly.in/question/1651781
#SPJ10