Shannon drove 500 miles. Which expression shows the miles per gallon obtained by her car if she used g gallons of gas on the trip?
A. 500 × g
B. 500 - g
C. 500 + g
D. 500 ÷ g