To measure exactly7 gallonsof water using a 2-gallon bucket and a 5-gallon bucket, follow these steps:
Fill the 5-gallon bucket completely.Now, the 5-gallon bucket contains 5 gallons of water, and the 2-gallon bucket is empty.
Now, the 5-gallon bucket contains 5 gallons of water, and the 2-gallon bucket is empty.
Pour water from the 5-gallon bucket into the 2-gallon bucket until the 2-gallon bucket is full.The 5-gallon bucket now has3 gallonsof water (5 - 2 = 3), and the 2-gallon bucket is full.
The 5-gallon bucket now has3 gallonsof water (5 - 2 = 3), and the 2-gallon bucket is full.
Empty the 2-gallon bucket.Now, the 2-gallon bucket is empty again, and the 5-gallon bucket still contains3 gallons.
Now, the 2-gallon bucket is empty again, and the 5-gallon bucket still contains3 gallons.
Pour the remaining 3 gallons from the 5-gallon bucket into the empty 2-gallon bucket.The 2-gallon bucket now has2 gallons(full), and there is1 gallonremaining in the 5-gallon bucket.
The 2-gallon bucket now has2 gallons(full), and there is1 gallonremaining in the 5-gallon bucket.
Empty the 2-gallon bucket again.Now, the 2-gallon bucket is empty, and the 5-gallon bucket still contains1 gallon.
Now, the 2-gallon bucket is empty, and the 5-gallon bucket still contains1 gallon.
Pour the 1 gallon from the 5-gallon bucket into the 2-gallon bucket.The 2-gallon bucket now has1 gallon, and the 5-gallon bucket is empty.
The 2-gallon bucket now has1 gallon, and the 5-gallon bucket is empty.
Fill the 5-gallon bucket completely again.The 5-gallon bucket now has5 gallons, and the 2-gallon bucket still contains1 gallon.
The 5-gallon bucket now has5 gallons, and the 2-gallon bucket still contains1 gallon.
Pour water from the 5-gallon bucket into the 2-gallon bucket until the 2-gallon bucket is full.The 2-gallon bucket already had 1 gallon, so it can take more gallonfrom the 5-gallon bucket.Now, the 2-gallon bucket is full (2 gallons total), and the 5-gallon bucket has4 gallonsremaining.
The 2-gallon bucket already had 1 gallon, so it can take more gallonfrom the 5-gallon bucket.
Now, the 2-gallon bucket is full (2 gallons total), and the 5-gallon bucket has4 gallonsremaining.
Fill the 5-gallon bucket completely.
Now, the 5-gallon bucket contains 5 gallons of water, and the 2-gallon bucket is empty.
Now, the 5-gallon bucket contains 5 gallons of water, and the 2-gallon bucket is empty.
Pour water from the 5-gallon bucket into the 2-gallon bucket until the 2-gallon bucket is full.
The 5-gallon bucket now has3 gallonsof water (5 - 2 = 3), and the 2-gallon bucket is full.
The 5-gallon bucket now has3 gallonsof water (5 - 2 = 3), and the 2-gallon bucket is full.
Empty the 2-gallon bucket.
Now, the 2-gallon bucket is empty again, and the 5-gallon bucket still contains3 gallons.
Now, the 2-gallon bucket is empty again, and the 5-gallon bucket still contains3 gallons.
Pour the remaining 3 gallons from the 5-gallon bucket into the empty 2-gallon bucket.
The 2-gallon bucket now has2 gallons(full), and there is1 gallonremaining in the 5-gallon bucket.
The 2-gallon bucket now has2 gallons(full), and there is1 gallonremaining in the 5-gallon bucket.
Empty the 2-gallon bucket again.
Now, the 2-gallon bucket is empty, and the 5-gallon bucket still contains1 gallon.
Now, the 2-gallon bucket is empty, and the 5-gallon bucket still contains1 gallon.
Pour the 1 gallon from the 5-gallon bucket into the 2-gallon bucket.
The 2-gallon bucket now has1 gallon, and the 5-gallon bucket is empty.
The 2-gallon bucket now has1 gallon, and the 5-gallon bucket is empty.
Fill the 5-gallon bucket completely again.
The 5-gallon bucket now has5 gallons, and the 2-gallon bucket still contains1 gallon.
The 5-gallon bucket now has5 gallons, and the 2-gallon bucket still contains1 gallon.
Pour water from the 5-gallon bucket into the 2-gallon bucket until the 2-gallon bucket is full.
The 2-gallon bucket already had 1 gallon, so it can take more gallonfrom the 5-gallon bucket.
Now, the 2-gallon bucket is full (2 gallons total), and the 5-gallon bucket has4 gallonsremaining.
The 2-gallon bucket already had 1 gallon, so it can take more gallonfrom the 5-gallon bucket.
Now, the 2-gallon bucket is full (2 gallons total), and the 5-gallon bucket has4 gallonsremaining.
Now you haveexactly 7 gallons:4 gallons in the 5-gallon bucket and 3 gallons in the 2-gallon bucket (2 + 5 = 7).