Eric has a total of 12 + 6 = <<12+6=18>>18 white and blue marbles.

Thus, he has 20 - 18 = <<20-18=2>>2 green marbles.

# Answer

2
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Eric has 20 marbles. He has 12 white marbles, 6 blue marbles, and the rest are green marbles. How many green marbles does Eric have?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
2
Eric has 20 marbles. He has 12 white marbles, 6 blue marbles, and the rest are green marbles. How many green marbles does Eric have?
train