There are 3 containers. Container A has a capacity of 8 litres, B has a capacity of 5 litres and C a capacity of 4 litres. Container A is filled with water. How do you pour the water to finish with 4 litres in A and 4 litres in B?
|1) Pour 5L from A->B||4L||5L||0L|
|2) Pour 3L from B->C||3L||2L||3L|
|3) Pour 3L from C->A||6L||2L||0L|
|4) Pour 2L from B->C||6L||0L||2L|
|4) Pour 5L from A->B||1L||5L||2L|
|4) Pour 1L from B->C||1L||4L||3L|
|4) Pour 3L from C->A||4L||4L||2L|
Apparently Alan did in 6 steps but perhaps that's a puzzle for another day.