Let x be the crew rowing rate and y the rate of the current.
When the boat goes downstram the rates add up, then we have:
Now, we know that it took 2 hours to travel 12 miles, this means that the speed is 6 miles per hour, hence we have the equation:
Now, when the boats go downstream the rate of the current substract from the rowing rate, then we have:
Since it took them 3 hours to travel 12 miles the speed in this case is 4 miles per hour, then we have the equation:
Then we have the system of equations:
To solve this system we add the equation, then we get:
now that we know the value of x we plug it on the first equation and solve for y:
Therefore the rowing rate is 5 miles per hour and the current rate is 1 mile per hur.