Bob suggested that Dave hold his finger in the air while someone wound a piece of string tightly around his finger just above the metal ring. The string forced the swelling down. As they unwounded the string from the end nearest the ring, someone else slid the ring up. They continued winding and unwinding the string until the ring could be easily removed.
The shepherd who had three loaves should get one coin and the shepherd who had five loaves should get seven coins. If there were eight loaves and three men, each man ate two and two-thirds loaves. So the first shepherd gave the hunter one-third of a loaf and the second shepherd gave the hunter two and one-third loaves. The shepherd who gave one-third of a loaf should get one coin and the one who gave seven-thirds of a loaf should get seven coins.
Fill up the 3 gallon container and pour the 3 gallons into the 5 gallon container.
Then, fill the 3 gallon container back up, and pour it into the 5 gallon container.
The 3 gallon container will have 1 gallon left.
Empty the 5 gallon container.
Pour the remining 1 gallon into the 5 gallon container.
Then fill the 3 gallon container back up and pour it into the 5 gallon container.
Thus, you have 4 gallons.