A certain car model was expected to fet 542 miles on 21 gallons of gas. What was the average number of miles per gallon?