A tourist first walked 17 km with a speed of v km/h. Then he hiked 12km with a speed that was 2km/hour less than his original speed. The whole trip took him t hours.

a) Write a formula for t in terms of v.

b) How much time did the tourist take spend on this trip if his original speed was 5km/h?