Solution for #45Alternate Solution #1 Fill the threegallon tank from the eightgallon. Dump the threegallon tank into the fivegallon. Fill the threegallon tank from the eightgallon again and use that to fill the fivegallon. Now you've got two gallons in the eightgallon tank, five gallons in the fivegallon tank, and one gallon in the threegallon tank. Dump the fivegallon tank into the eightgallon tank. Put the gallon from the threegallon tank into the fivegallon tank. Now you've got seven gallons in the eightgallon tank and one in the fivegallon tank. Fill the threegallon tank from the eightgallon tank. Dump the threegallon tank into the fivegallon tank. You should now have four gallons in the eightgallon tank and four gallons in the fivegallon tank. Alternate Solution #2 Fill the fivegallon tank from the eightgallon. Fill the threegallon tank from the fivegallon. Pour the threegallon tank back into the eightgallon tank. Now you should have six gallons in the eightgallon tank and two gallons in the fivegallon tank. Dump the two gallons in the fivegallon tank into the threegallon tank. Pour what you can from the eightgallon tank into the fivegallon tank. Now you should have one gallon in the eightgallon tank, five gallons in the fivegallon tank, and two gallons in the threegallon tank. Top off the threegallon tank from the fivegallon, and dump the threegallon tank into the eightgallon tank. 
