1- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
2- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
now you have 10 gallons.
pour 3 into the 1 gallon bucket.
pour out the 4 gallon bucket.
now you have 6 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallons out.
now you have 2 gallons in the 9 gallon bucket.
3- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
pour 3 into the 1 gallon bucket.
pour out the 4 gallon bucket.
now you have 6 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
now you have 2 gallons in the 9 gallon bucket.
pour the 2 gallons into the 4 gallons bucket.
fill the 9 gallon bucket.
pour 2 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
pour 4 gallons from the 9 gallon bucket into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 3 gallons in the 9 gallon bucket.
4- fill up the 4 gallon bucket.
5- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
6- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
now you have 10 gallons.
pour 3 into the 1 gallon bucket.
pour out the 4 gallon bucket.
now you have 6 gallons in the 9 gallon bucket.
7- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
pour 3 into the 1 gallon bucket.
pour out the 4 gallon bucket.
now you have 6 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
now you have 2 gallons in the 9 gallon bucket.
pour 2 gallons in the 9 gallon bucket into the 4 gallon bucket.
8- fill up the 4 gallon bucket.
pour the 4 gallon bucket into the 9 gallon bucket.
fill up the 4 gallon bucket.
9- fill up the 9 gallon bucket.
10- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
now you have 10 gallons.
11- fill up the 9 gallon bucket
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 5 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallon bucket out.
now you have 1 gallon in the 9 gallon bucket
pour the 1 gallon into the 4 gallon bucket.
fill the 9 gallon bucket up.
now you have 10 gallons.
pour 3 into the 1 gallon bucket.
pour out the 4 gallon bucket.
now you have 6 gallons in the 9 gallon bucket.
pour 4 gallons into the 4 gallon bucket.
pour the 4 gallons out.
now you have 2 gallons in the 9 gallon bucket.
pour 2 gallons in the 9 gallon bucket into the 4 gallon bucket.
12- fill up the 4 gallon bucket.
pour the 4 gallon bucket into the 9 gallon bucket.
fill up the 4 gallon bucket.
pour the 4 gallon bucket into the 9 gallon bucket.
fill up the 4 gallon bucket.
13- fill up both buckets