I took a picture of the work instead ^^
Answer:
Tip: $8
Total:$48
Step-by-step explanation:
Multiply 40 by 20% to find out how much money he gave for tip.
Add the amount of tip, 8, to $40 find out the total amount of money he spent.
16 pints to gallons equals 2 gallons.
The answer is x=1. I showed my work in the screenshot provided