Hello everyone, I am a little stuck on this problem:

A man is floating in a rowboat 1 mile from the straight shoreline of a large lake. A town is located on the shoreline 1 mile from the point on the shoreline closest to the man. He intends to row in a straight line to some point P on the shoreline and then walk the remaining distance to the town. To what point should he row in order to reach his destination in the least time if he can walk 5 mi/hr and row 3 mi/ hr?

Any tips will be appreciated