.
What is written in your post, is / (are) the stories - not Math problems.
Continue write your stories - they are so charming (!)
////////////
OK, it was a joke. Now let's return to our problems.
(1) Introduce 2 (two) variables = gallons filled and = gallons used. Then the sought expression is
= = 14.
Part (1) is solved, explained and completed.
Now Part(2).
(2) Introduce 2 (two) variables = eggs taken and = eggs broken. Then the sought expression is
= = 10.
Solved, explained and completed, too.