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

### Instruction:
 John ameamua kujifunza kucheza piano. Ananunua piano kwa $500. Kisha anamwajiri mwalimu kwa masomo 20 kwa $40 kwa kila somo lakini anapata punguzo la 25%. Gharama yote ilikuwa kiasi gani?


### Response:
 Amezipata punguzo la $40 * 0.25 = $<<40*0.25=10>>10.
Hivyo kila somo linagharimu $40 - $10 = $<<40-10=30>>30.
Hivyo analipa $30 * 20 = $<<30*20=600>>600 kwa masomo.
Hivyo, kila kitu kimegharimu $600 + $500 = $<<600+500=1100>>1100.