Let the speed of the current of the river be = x
And, the speed of the boat in still water = 9 mph
Then, the speed of boat along the river current will be= 9+x mph
And, speed of boat against the river current will be = 9-x mph
Now as given, total distance along river current and total distance against river current is same = 16 miles.
As we know, time=distance/speed
Time taken by boat along the river current =

And time taken by boat against the river current =

Also given is , the overall the journey takes 4 hours; so equation becomes


Solving this we get;
or x=3
Therefore, the speed of the current of the river is 3 mph.