Bob S. answered 06/12/19
Electrical Engineer (PhD), can also help with Physics, Math and Coding
Let Vr be the speed of the river water in mph. Going upriver the boat speed is 25 - Vr relative to the shore. Going downriver it is 25 + Vr. Let Tu be the travel time upriver and Td the travel time downriver. Then:
Tu * (25 - Vr) = Td * (25 + Vr) = 20 miles
Tu + Td = 3.333 hrs
Or
(20 / (25 - Vr)) + (20 / (25 + Vr)) = 3.333
Solving for Vr:
20 * (25 -+ Vr) + 20 * (25 - Vr) = 3.333 * (25 + Vr) * (25 - Vr)
500 + 500 = 3.333 * (625 - Vr^2)
Or
Vr = 18.03 mph
Note that
Tu = 20 / (25 - Vr) = 2.8685
Td = 20 / (25 + Vr) = 0.4648
And
Tu + Td = 3.333