Your starting point is on the shore, at location (0,0) and your destination is location (5,1).
Your running speed is 1 unit per minute.
Your swimming speed is 1/2 units per minute.
Your plan is to divide the trip into three legs (run, then swim, then run) each leg being a straight line. Assuming there is no current in the river (and no wind), what is the minimum travel time to the destination, and by what pathway?