Grace has 16 jellybeans in her pocket. She has 8 red ones, 4 green ones, and 4 blue ones. What is the minimum number of jellybeans she must take out of her pocket to ensure that she has one of each color?

is there a certain rule to answer quesions like these?!