Answer:
13
Step-by-step explanation:
Because the problem says to make sure we have at least 3 candies of the same color, we have to think about the worst-case scenario. To get the worst-case scenario, we need to have the largest amount of candies taken before fulfilling the statement that 3 candies have the same color, so we take 2 black, 2 white, 2 green, 2 red, 2 blue, and 2 yellow candies. This sums to 12, and you have the worst case scenario here. But wait, you've picked only 2 of each candy. You have to pick one more candy to make sure you have 3 candies of the same color, so the answer is 12 + 1 = 13 candies.