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

### Instruction:
With one mighty blow, Maria cracked open the pinata, and candies spilled all over the floor.  There were 40 red candies, 20 less than three times as many yellow candies as red candies, and half as many blue candies as yellow candies.  If Carlos ate all of the yellow candies, how many candies remained?

### Response:
 Maradufu ya idadi ya pipi nyekundu ni 40*3=<<40*3=120>>120.
Kwa hivyo, pipi za manjano ni 20 chini ya mara tatu ya pipi za manjano kuliko pipi nyekundu, au jumla ya pipi za manjano 120-20=<<120-20=100>>100.
Idadi ya pipi za buluu ni 1/2*100=<<1/2*100=50>>50 pipi za buluu.
Ikiwa Carlos alikula pipi zote za manjano, basi zilibaki pipi 40 nyekundu na pipi 50 za buluu kwa jumla ya pipi 40+50=<<40+50=90>>90.