A small motor on a fishing boat can move the boat at a rate of 7 mph in calm water. Traveling with the current, the boat can travel 18 mi in the same amount of time it takes to travel 10 mi against the current. Find the rate of the current