During the first part of a trip, a canoeist travels 32 miles at a certain speed. The canoeist travels 22 miles for the second part of the trip at a speed 5 mph slower. The total time for the trip is 5 hours. What is the speed on each part of the trip?