Given:
Speed in still water = 12 miles per hour
Distance travel in upstream = 45 miles
Distance travel in downstream = 45 miles
Total time = 8 hours
To find:
The speed of current.
Solution:
Let the speed of current be x miles per hour.
Speed in upstream = (12-x) miles per hour
Speed in downstream = (12+x) miles per hour
We know that,

Time to cover 45 miles in upstream =

Time to cover 45 miles in downstream =

Total time is 8 hours. So,


Taking LCM, we get



On further simplification, we get




Taking square root on both sides.


Speed cannot be negative. So, x=3 only.
Therefore, the speed of the current is 3 miles per hour.