a milkman has 3 containers of 3litres, 5litres and 8litres.the 8litre container is completely filled with milk.the milkman wants to measure 4litre milk.how can he do this with these 3 containers?

Start with (0, 0, 8)

1. 8 to 5 (0 , 5 , 3)
2. 5 to 3 (3 , 2 , 3)
3. 3 to 8 (0 , 2 , 6)
4. 5 to 3 (2 , 0 , 6)
5. 8 to 5 (2 , 5 , 1)
6. 5 to 3 (3 , 4 , 1)
7. 3 to 8 (0 , 4 , 4)

or

1. 8 to 3 (3, 0, 5)
2. 3 to 5 (0, 3, 5)
3. 8 to 3 (3, 3, 2)
4. 3 to 5 (1, 5, 2)
5. 5 to 8 (1, 0, 7)
6. 3 to 5 (0, 1, 7)
7. 8 to 3 (3, 1, 4)
8. 3 to 5 (0, 4, 4)

To measure 4 liters of milk using the three containers of 3 liters, 5 liters, and 8 liters, the milkman can follow these steps:

1. Start by pouring the 8-liter container of milk into the 5-liter container. After pouring, the 8-liter container will be empty, and the 5-liter container will have 5 liters of milk.

2. Next, empty the 5-liter container. This will leave the milkman with an empty 5-liter container.

3. Now, pour the remaining 3 liters of milk from the 3-liter container into the empty 5-liter container. The 5-liter container will now have 3 liters of milk, and the 3-liter container will be empty.

4. Fill the 8-liter container again with milk. Since the 5-liter container already has 3 liters of milk, you can only pour 2 liters from the 8-liter container into the 5-liter container, leaving 6 liters of milk in the 8-liter container.

5. Finally, pour the 5 liters of milk from the 5-liter container into the 3-liter container. Now, the 3-liter container will be full with 3 liters of milk, and the 5-liter container will have 2 liters of milk.

With this process, the milkman has successfully measured exactly 4 liters of milk using the given containers.