A farm hand was sent to a nearby pond to fetch 8 gallons of water. He was given two pails - one 11, the other 6 gallons. How can he measure the requested amount of water?

(Two containers and a pond are depicted in the right-hand side of the applet. To pour water, first click on the "source" and then on the "receiver" object.

The grid in the left-hand side of the applet is to help you solve the problem. A = 11 and B = 6. Every possible distribution of water in the two pails is described by a grid point (x, y), where x stands for the quantity of water in the first pail, y that in the second.)