To find the total cost to fill up your tank, you can multiply the number of gallons by the cost per gallon.
Total cost = Number of gallons × Cost per gallon
In this case, you pumped 22.35 gallons at a cost of $1.79 per gallon:
Total cost = 22.35 gallons × $1.79/gallon
Calculating this:
Total cost = 22.35 × 1.79 = $39.8735
Rounding to two decimal places, the total cost to fill up your tank is approximately $39.87.