A new company has launched a range of juicy candies. There are two flavors of which these juice candies will be available for retail - Peach and Grape. The toffees are packed in three different boxes with one containing peach candies, one containing grape candies and one containing a mixture of both. It is informed that the packaging person has accidentally mislabeled all the three boxes.
If you are asked to label them correctly, how many candies will you have to pick and from which jar in order to label every box correctly?
Solution:
There are many ways in which you can think a solution for the problem. Your approach should be to minimize the efforts. What if you took out one candy from the box labeled Peach and Grape?
What you have to consider is the fact that every box is labelled incorrectly. Thus if you pick a candy from the box labelled with Peach and Grape, it is evident that the box will not have a mixture of both (as it is labelled wrong). Thus you will get to know which candies are present in that box.
Suppose the candy you take out turns out to be peach flavored, then the box labeled as Grapes is the one which contains a mixture of both peach and grapes. This is because it is labelled incorrectly and since we have already figured out the box with Peach candies, we can be confident of the fact. And then the jar labelled as peach will be the one containing grape flavored candies.
If the candy you take out from the mixed labeled box is Grape flavored, you can use the same logic to find out the rest.
Consider picking a candy from the other two boxes instead of what is told in the solution and you will find out that you will have to take out a candy from each of the boxes before being sure.