A car used 16 gallons of gasoline and traveled a total distance of 460 miles. The car's fuel efficiency is 30 miles per gallon on the highway and 25 miles per gallon in the city. How many gallons of gasoline were used on the highway.