Given that the boat travels upstream for 60 miles in 4 and downstream for 60 miles in 3 hours.
Let x be the rate of the boat in still water.
Let y be the rate of the boat in the current.
Downstream =x+y.
Upstream =x-y.
Using the speed formula for downstream, we get

Dividing both sides by 3, we get



Using the speed formula for upstream, we get

Dividing both sides by 4, we get


Substitute x=20-y to compute y value, we get




Substitute y=2.5 in x=20-y, we get

Hence the rate of the boat in still water is 17.5 mph and the rate of the boat in the current is 2.5 mph.