AMC10 2007 10B, Problem 3

A college student drove his compact car $120$ miles home for the weekend and averaged $30$ miles per gallon. On the return trip the student drove his parents' SUV and averaged only $20$ miles per gallon. What was the average gas mileage, in miles per gallon, for the round trip?

Solution: The trip was $240$ miles long and took $\dfrac{120}{30}+\dfrac{120}{20}=4+6=10$ gallons. Therefore, the average mileage was $\dfrac{240}{10}= \fbox{24}$

Answer: 24