There are 10 + 4 = <<10+4=14>>14 yellow candies.
There are 14 - 2 = <<14-2=12>>12 green candies.
There are 10 + 14 + 12 = <<10+14+12=36>>36 rainbow nerds candies in the box.
#### 36