Answer
$30$ miles per gallon
Work Step by Step
Determine the car's gas mileage by dividing the total distance traveled by the total gas consumed to obtain:
$\text{ car mileage} = \dfrac{240\text{ miles}}{8\text{ gallons}}=30\text{ miles per gallon}$