In his pocket, a boy has 3 red marbles, 4 blue marbles, and 4 green marbles. How many will he have to take out of his pocket to ensure that he has taken out at least one of each color?

If he takes out 8 marbles, they could be 4 blue and 4 green.

So how many does he need to make sure there is one of each?