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