John's swimming speed is 2 mi/h, and he can run at a rate of 6 mi/h. If the swimming leg of the triathlon is 6 mi and the running leg is 15 mi, what is the total time John will take for swimming and running?
a) 23 h
b) 3. 5 h
c) 31 h
d) 4. 5 h