To calculate this, we multiply the number of gallons by the price per gallon:
12.6 gallons * $1.40 per gallon = $17.64