The minimum number of pieces of candy must be taken to ensure that two of the same pieces of candy are picked is 12.
So obviously, there is the case where with only two draws you can get the same candy twice, but we need to find a number N such that we know for sure that always that we take N candy, we drew at least one pair of equal candy.
There are 11 types of candy in the bag.
Now, suppose the next thing.
First, you draw a candy, now there are 10 types of candy in the bag that are different than the one you got.
Now you draw again, and get a different candy, so now there are 9 types of candy in the bag different to the two you got.
Now you keep doing this and getting a different type of candy until you already have the 11 types of candy in your hands.
Now if you draw a candy again, one pair will be formed (because you have all the types of candy already).
From this, we can conclude that always that you draw 12 pieces of candy, at least one pair will be formed.
If you want to learn more about counting, you can read:
https://brainly.com/question/26953669