Measuring Exact Amounts

With an unlimited water supply, a five-gallon tank, and a four-gallon tank, how could you produce exactly 3 gallons of water?