The amount spent on gas is $22.814
Here, we want to calculate the amount spent on gas given the unit price and the number of gallons bought
Mathematically, we can have this amount by multiplying the unit price (price per gallon) by the number of gallons bought
Thus, we have this as;