1. Pour water from the 8 quart jug into the 5 quart jug, thus having 3 quarts in the 8 quart jug and 5 quarts in the 5 quart jug.

2. Then pour water from the 5 quart jug into the 3 quart jug, getting 3 quarts in the 3 quart jug, 2 quarts in the 5 quart jug, and 3 quarts in the 8 quart jug.

3. Pour the 3 quarts from the 3 quart jug into the 3 quarts from the 8 quart jug, getting 6 quarts in the 8 quart jug, 2 quarts in the 5 quart jug, and 0 quarts in the 3 quart jug.

4. Pour the 2 quarts into the 5 quart jug into the 3 quart jug, getting 2 quarts in the 3 quart jug, 0 in the 5 quart jug, and still 6 quarts in the 8 quart jug.

5. Pour the 6 quarts of the 8 quart jug into the 5 quart jug, leaving 1 quart in the 8 quart jug.

6. Pour the full 5 quart jar into the 3 quart jar, getting 3 quarts in the 3 quart jar, 4 quarts in the 5 quart jar, and 1 quart in the 8 quart jar.

7. Pour the full 3 quart jar into the 1 quart of water in the 8 quart jar, getting 4 quarts in the 5 quart and 8 quart jar.