Let's call the speed of the boat in still water as x.
One part of the trip is 10 miles downstream, where the speed of the boat and the speed of the current add together and the other part of the trip is the trip back the 10 miles upstream, where the speed of the current works against the speed of the boat, which gives to us the following equation:
Solving for x, we have:
Using the quadratic equation, the solution for our equation is:
The answer is 20.81 mph.