Would you like a jelly baby?

What is the smallest number of jelly babies Tom must take, to be certain that he gets at least one of each flavour?

Problem



In Tom's pocket there are 8 watermelon jelly babies, 4 vanilla jelly babies and 4 butter popcorn jelly babies.

What is the smallest number of jelly babies he must take out of his pocket to be certain that he takes at least one of each flavour?