asked 123k views
1 vote
There are 5 bags, each containing 15 chocolate bars. One has all Snickers, one has all Kitkats, one has all Diary Milks. The other two has 5 each of them. What's the minimum number of chocolate bars you have to pull from the bags to confirm the contents of atleast one bag?

asked
User Pakman
by
7.9k points

1 Answer

2 votes

The minimum number of chocolate bars to confirm the contents of at least one bag is 5.

Identify the Bags with Unique Contents:

Bag 1: All Snickers

Bag 2: All Kitkats

Bag 3: All Diary Milks

Determine the Bags with Mixed Contents:

Bags 4 and 5 each have a mix of Snickers, Kitkats, and Diary Milks (5 each).

Now, let's consider the worst-case scenario for confirming the contents. To guarantee identification, you may need to pull chocolate bars from the bags in a way that ensures you get a representative sample of each type.

Worst-Case Scenario:

Pull 1 chocolate bar from Bag 1 (Snickers).

Pull 1 chocolate bar from Bag 2 (Kitkat).

Pull 1 chocolate bar from Bag 3 (Diary Milk).

Up to this point, you have not pulled any chocolate bars from Bags 4 and 5 (the ones with mixed contents).

Now, you may need to pull additional chocolate bars from Bags 4 and 5 to confirm their contents.

To Confirm Contents of Bags 4 and 5:

Pull an additional chocolate bar from Bag 4.

Pull an additional chocolate bar from Bag 5.

At this point, you have pulled a total of

1+1+1+1+1=5 chocolate bars.

Therefore, the minimum number of chocolate bars you need to pull to confirm the contents of at least one bag is 5, considering the worst-case scenario where you first identify the bags with unique contents and then confirm the mixed bags.

answered
User Bikesh M
by
8.1k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.