Let's solve the following problem:
You have one 12 liter bucket full of water and two empty ones - 7 and 5 liters respectively. Divide the water into two equal parts using the available buckets.

How to solve the Three-Bucket Problem?
The middle bucket is filled by the big one.
The smallest bucket is filled from the middle one and emptied into the largest one only if it is full to the top.
Solution of the task:
