You have two unmarked jugs and an unlimited tap, and you want an exact amount of water.
With an unmarked 3-litre jug, an unmarked 5-litre jug and an unlimited tap, how can you measure exactly 4 litres?
Think it through first. When you're ready:
Fill the 5-litre jug and pour into the 3-litre jug until it is full, leaving 2 litres in the 5-litre jug. Empty the 3-litre jug, pour the 2 litres into it, refill the 5-litre jug, then top up the 3-litre jug, which takes 1 litre. That leaves 4 litres in the 5-litre jug.
After the first two steps the 3-litre jug holds 2 litres. The 3-litre jug has room for 1 more litre, so topping it up leaves 5 - 1 = 4 litres in the big jug. A search of every possible jug state confirms that 4 litres can be reached.