Answer
6
Work Step by Step
The number of marbles that are either red or green is $4+2=6$
The question is how many ways we can choose 5 of these. That is $C(6,5)=6$
Therefore there are 6 sets of five marbles in which all of them are red or green.