This is the pigeonhole principle. What if the first 8 jelly beans were red? And, in addition, what if the next 4 jelly beans were either all green or all blue? You still don't have one of each color in that case! You'd have picked 12 jelly beans, but without getting one of each color. However, picking one more jelly bean ensures you'd get one of each color.