Let the speed of the current be x and the speed of the canoe in still water be y, then

Adding the two equations, we have:

From any of the equations, we have that x = 2
Therefore, the speed of the current is 2 miles per hour while the speed of the canoe in still water is 5 miles per hour.