4 and 5-liter glass
4 L glass 5 L glass
4 0 (on filling 4 L glass fully.)
0 4 (on pouring 4 Lglass into 5 L glass)
4 4 (on filling 4 L glass fully.)
3 5 (on pouring 4 Lglass into 5 L glass)
3 0 (on removing 5 L glass)
0 3 (on pouring 4 Lglass into 5 L glass)
4 3 (on filling 4 L glass fully.)
2 5 (on pouring 4 Lglass into 5 L glass)
Hence the desired result.
- 4 and 3-liter glass
4 L glass 3 L glass
0 3 (on filling 3 L glass fully.)
3 0 (on pouring 3 L glass into 4 L glass)
3 3 (on filling 3 L glass fully.)
4 2 (on pouring 3 Lglass into 4 L glass)