A man in a rowboat that is a = 2 miles from the nearest point A on a straight shoreline wishes to reach a house located at a point B that is b = 8 miles farther down the shoreline (see the figure). He plans to row to a point P that is between A and B and is x miles from the house, and then he will walk the remainder of the distance. Suppose he can row at a rate of 2 mi/hr and can walk at a rate of 4 mi/hr. If T is the total time required to reach the house, express T as a function of x.
