Given,
Time taken by motorboat to going 200 miles upstream is 5 hours.
Time taken by motorboat to going 200 miles downstream is 4 hours.
At upstream,
The speed of boat is offosed by the speed of current.
At downstream,
The speed of boat is incraesed by the speed of current.
Consider,
The speed of boat is b.
The speed of current is c.
The speed is calculated as,
Similarly,
Substituting the value of b from equation (2) then,
Substituting the value of c in equation (1) then,
Hence, the speed of boat is 45 mile per hour and speed of current is 5 mile per hour.