Alan used a total of 7 1/4 gallons of gas while driving his car. Each hour he was driving, he used 5/6 gallons of gas. What was the total number of hours he was driving?