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.
#### 2