Answer
Here are the contents of the containers after each stage:
A B
0 7 fill B
3 4 fill A from B
0 4 empty A
3 1 fill A from B
0 1 empty A
1 0 fill A from B
1 7 fill B
3 5 fill A from B
This leaves 5 gallons in container B after 8 steps.
?
Puzzle 478
What three-letter word best completes these words?
c---on
he---
e---h
m---yr
qu---er
st---
Below you can find 8 words that have had their beginnings and endings removed. In each case, the same two letters can be found at the beginning and the end. For example REspiRE. --qui----yli----tat----gib----liv----rmi----ifi----alg--