Answer: D. 3 miles per hour.
Explanation:
Since, the speed of the boat in still water = 9 mph
Let, x be the speed of the current of the river.
Then, the speed of boat with the river current = 9+x mph
And, speed of boat against the river current = 9-x mph
According to the question,
Total distance with river=total distance against river = 16 miles.
Thus, Time taken by boat with the current=
( because time=distance/speed)
And, Time taken by boat against the current= 
But, total time taken by boat in both with and against the current= 4 hours.
⇒
⇒
⇒
⇒
⇒
⇒
⇒
( we will not take -3 value because speed can not be negative)
Therefore, speed of the current of the river= 3mph