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.

# Answer

36
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
36
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?
train