Jason cycled for 3 hours. He cycled 7.5 miles each hour for the first two hours and the distance he cycled for the third hour was 1/4 of the total distance he cycled in 3 hours. What was the total distance Jason cycled in 3 hours?