Answer:
31
Step-by-step explanation:
In order to guarantee that you get 3 colors, you much choose a number that exceeds the number of marbles of the most prevalent 2 colors.
That is, you could choose 30 marbles and only end up with 16 green and 14 blue. To guarantee that you also choose a red, you must choose 31 marbles.