Fill the 5-gallon jug to the top, pour 3 gallons into the 3-gallon jug so that leaves you with 2 gallons in the 5-gallon jug. Then, pour the 2 gallons into the 3-gallon jug, fill up the 5-gallon jug again to the top and pour 1 gallon into the 3-gallon jug.