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

### Instruction:
James dumps his whole collection of 500 Legos on the floor and starts building a castle out of them.  He uses half the pieces before finishing and is told to put the rest away.  He puts all of the leftover pieces back in the box they came from, except for 5 missing pieces that he can't find.  How many Legos are in the box at the end?

### Response:
 James anatumia nusu ya Legos, au 500/2=<<500/2=250>>250 Legos.
Hii inamaanisha kuna Legos 500-250=<<500-250=250>>250 zilizobaki.
Hata hivyo, 5 zimepotea, hivyo kuna Legos 250-5=<<250-5=245>>245 kwenye sanduku mwishoni.