Mr. Anderson had to buy gas before he could drive to the polls to vote. He filled his tank with 18 gallons of gas. The gas cost $31.39. What was the price of the gas per gallon?

divide price by # gallons