Hello, bob9171!

This is a classic problem, found in every Calculus text.

A man, in a boat 2 miles from the nearest point A on a straight shoreline,

wants to reach a house located at point B which is 6 miles further down the coast.

He plans to row to point P that is between point A and B.

P is also x miles from the house.

He will then walk the remainder of the distance to the house.

Suppose he can row at a rate of 3 mph and can walk at a rate of 5 mph.

If T is the total time to reach the house, express T as a function of x. Code:

M *
| *
| *
2 | *
| *
| *
* - - - - - * - - - - - - *
A 6-x P x B

We are told that: .

. . Hence: .

From the right triangle

He rows that distance at 3 mph.

. . This takes him: . hours.

Then he walks miles at 5 mph.

. . This takes him: . hours.

His total time is: . . hours.

Edit: Too fast for me, Roy!