An 8-cylinder Crown Victoria gives 18 miles per gallon in city driving and 21 miles per gallon in highway driving. A 300-mile trip required 15.5 gallons of gasoline. How many whole miles were driven in the city?

Answer:
Step-by-step explanation:
let he drives at 21 m/hr=x gallons
gas used at 18 m/hr=15.5-x
21x+18(15.5-x)=300
divide by 3
7x+6(15.5-x)=100
7x+93-6x=100
x=100-93=7 gallons
gas used in city=15.5-7=8.5 gallons
distance travelled in city=18×8.5=153 miles