Three-Bucket Problem

Let's solve the following problem:

Three-Bucket Problem

 

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:

Three-Bucket Problem