A swimmer wishes to cross a 500 m wide river flowing at 5 km/h. His speed with respect to water is 3 km/h. He reaches the other shore in shortest time. The man has to reach the other shore at
the point directly opposite to his starting point. If he reaches the other
shore somewhere else, he has to walk down to this point. Find the minimum
distance that he has to walk.