What Direction Should you Swim in? Swim, Run at different speeds; Optimization, Derivative.
Let "x" be how far downstream you swim.
Create expressions for distance swam and distance ran
Time = Distance over Speed for each segment
Take derivative of time with respect to x, set=0.