What is the sample space if you have a bag with 3 green marbles, 2 rainbow marbles, and 4 glitter marbles?
A: 24
B: 6
C: 9
D: 3