Given:
Alvin paddled for 2 hours with a 5-km/h current to reach a campsite.
Let n be the speed of boat.
Distance is calculated as,

The return trip against the same current took 7 hours.

Equate both the equations,

Answer: the speed of the boat is 9 mph.