By dividing the price per gallon, we see that for every gallon he pays three dollars.
18 Dollars/ 6 Gallons=3 and 21 Dollars/7 Gallons= 3.
So for 8 Gallons, if he pays that same rate of 3 Dollars, he will pay $24.
Please heart & rate answers you find helpful!