Hi! I'm assuming that Coach Miller is pouring g gallons OUT of the original lemonade container.
If that's the case, the answer is 5 - g, because that is how many gallons would be left in the original container after coach miller took away the quantity of the variable g.
I really hope this helps you out! :D