Below is an instruction that describes a task. Write a response that appropriately completes the request in Chinese. Please answer in Chinese.

### Instruction:
 一盒彩虹糖果中有10颗紫色糖果，比黄色糖果多4颗，比绿色糖果少2颗。盒子里有多少颗彩虹糖果？


### Response:
 黄色糖果比绿色糖果多4颗，所以绿色糖果有4+2=<<4+2=6>>6颗。
有10颗紫色糖果，6颗绿色糖果，和4颗黄色糖果。
所以，盒子里有10+6+4=<<10+6+4=20>>20颗彩虹糖果。