One day last summer, Jim went kayaking on the Little Susitna River in Alaska. Paddling upstream against the current, he traveled 12 miles in 3 hours. Then he turned around and paddled twice as fast downstream and, with the help of the current, traveled 17 miles in 1 hour. Find the rate of the current.