How do you solve this word problem? The river is flowing from point A to B at a rate of 15 miles per hour. A boat moves on still water at 45 miles per hour. If it takes David 1 hour and 15 minutes to ride the boat on the river from A to B, how long does it take him to make the return trip from B to A?
Please explain the steps :) thankyou
 A: First, use what you are given about the time taken to travel from $A$ to $B$, and the given rates, to compute the distance $d$ between $A$ and $B$:
$$d = 1.25\;\text{hours}\;\cdot \left(\frac {15\;\text{miles}}{1\;\text{hour}} + \frac{45\;\text{miles}}{1\;\text{hour}}\right)$$
Above, we add the rate at which the river is moving to the rate at which the boat moves on still water, to get the overall rate at which the boat is traveling from point A to point B. (It's traveling with the current).
Then, try setting up the equation you need to solve for the time needed to travel distance $d$ from point $B$ to point $A$ at a rate of $(45\; \text{mph}\;- 15\;\text{mph})$. Here, we subtract the rate of the current, which is going in the opposite direction than the boat is, from the rate of movement of the boat in still water. 
Try to set up the equation and then solving for the unknown, but desired time needed to travel from point B to point A. I'll be happy to check your progress, if you follow up in the comments below.
A: Hint:  what is the speed of the boat from A to B?  what is the speed of the boat from B to A?
