Of you take 12/12 (total number of marbles) minus 3/12 (amount of yellow marbles out of total) that leaves 9/12 and if you subtract 2/12 (amount of blue marbles from total) from that it leaves you with 7/12 (the amount of green marbles from the total.
Yellow=3
Blue=2
Green=7
Total=12