A man is on the bank of a river that is 1 mile wide. He wants to travel to a town on the opposite bank, but 1 mile upstream. He intends to row on a straight line to some point $P$ on the opposite bank and then walk the remaining distance along the bank (Figure $\mathrm{Ex}-56$ ). To what point should he row in order to reach his destination in the least time if
(a) he can walk $5 \mathrm{mi} / \mathrm{h}$ and row $3 \mathrm{mi} / \mathrm{h}$
(b) he can walk $5 \mathrm{mi} / \mathrm{h}$ and row $4 \mathrm{mi} / \mathrm{h} ?$