The trick is to never let any water leave the 60 cup container it starts in.
To do this, we need to find a way to express 30 as a combination of 7s and 11s. There are two options: 30=7*9-11*3 and 30=11*4-7*2. The second option uses fewer 7s and 11s, so that one will be used.
A +11 signifies pouring from the 60c jug to the 11c jug and then from the 11c jug to the 43c jug. A -7 signifies pouring from the 43c jug to the 7c jug and then from the 7c jug to the 60c jug.
Arranging 30 as 11 +11 -7 -7 +11 +11 solves the problem, so the list of pourings is:
60c to 11c
11c to 43c
60c to 11c
11c to 43c
43c to 7c
7c to 60c
43c to 7c
7c to 60c
60c to 11c
11c to 43c
60c to 11c
11c to 43c
The 60c jug now contains the 30c water and the 43c jug now contains the 30c oil. |