A box of rainbow nerds contains 10 purple candies, 4 more yellow candies, and 2 fewer green candies than yellow candies. How many rainbow nerds are there in the box?
There are 10 + 4 = 
<gadget id="calculator">10+4</gadget>
<output>14</output>
14 yellow candies.
There are 14 - 2 = 
<gadget id="calculator">14-2</gadget>
<output>12</output>
12 green candies.
There are 10 + 14 + 12 = 
<gadget id="calculator">10+14+12</gadget>
<output>36</output>
36 rainbow nerds candies in the box.

<result>36</result>