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

### Instruction:
James and Ali together own $250. If you know that James owns $40 more than Ali, then calculate the amount owned by James.

### Response:
 Hebu X iwe kiasi anachomiliki James. Kiasi anachomiliki Ali ni X - $40.
Jumla ya kiasi wanachomiliki wote X + (X - $40) = $250.
Kwa kuunganisha vipengele sawa, tunapata X*2 - $40 = $250.
Kwa kuongeza $40 kwa pande zote na kuzidisha kwa mabano, tunapata X*2 = $290.
Kwa kugawanya pande zote kwa 2, tunapata X = $145.