9. I first thought about how I could have the greatest possible number of pieces of candy and yet not have 3 of any color. That would be when I have 2 of each color, 2 reds, 2 blues, 2 greens, and 2 yellows. That makes 8 pieces of candy. Then if I had that, and I got one more piece of candy, it would have to be the same color as one of those that I have 2 of, and then there will be 3 of that color. Edwin