Brett and Erryn were camping and asked a farmer if they could purchase 2 litres of milk.the farmer agreed,but between them they only had an 8 litre and a 5 litre container.how can Brett and Erryn be sure of betting their 2litres of milk?

To ensure they get exactly 2 liters of milk, Brett and Erryn can follow these steps:

1. Fill the 8-liter container entirely with milk from the farmer.

2. Pour the milk from the 8-liter container into the 5-liter container. This leaves 3 liters of milk in the 8-liter container.

3. Empty the 5-liter container.

4. Pour the remaining 3 liters of milk from the 8-liter container into the empty 5-liter container.

5. Fill the 8-liter container again with milk from the farmer.

6. Pour milk from the 8-liter container into the 5-liter container until the 5-liter container is full, which requires 2 liters of milk.

Now, Brett and Erryn have successfully obtained exactly 2 liters of milk in the 5-liter container.