# The Three Jugs Problem

Two friends who have an eight-quart jug of water wish to share it evenly. They also have two empty jars, one holding five quarts, the other three. How can they each measure exactly 4 quarts of water?

### If you are reading this, your browser is not set to run Java applets. Try Firefox and declare the site http:///www.cut-the-knot.org as trusted in the Java setup.

 What if applet does not run?

To pour water, first click on the "from" jug and then on the "to" jug. You can specify capacities of jugs by first checking the Capacity button. Subsequently click on the numbers below the glasses. Similarly, you may specify the initial quantities of water in each jug by first checking the Water button. (To increase a number click a little to the right of its vertical center line; to decrease it, click on the left.) A glass need not be full, but when pouring water there are two possibilities. Either the "to" glass becomes full, or the "from" glass becomes empty. To return to the puzzle check the Play button.

You can always take a move Back, or even Reset the puzzle to its starting point.