Answer: 18 gallons.
Explanation:
Let's call the total gallons that the container can hold x.
Then, based on the information given in the problem, you can write the following expression:

Now, you must solve for x, as you can see below. Therefore, you obtain the following result:
