The man walks for 45 minutes at the rate of 3 mph, then jogs for 75 minutes at the rate of 5 mph, then sits and rests for 30 minutes, and at last walks for 90 minutes. Determine rule of function which expresses the distance traveled as the function of time.