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

### 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:
Let X = the amount owned by James
Ali = X - $40
X + X - $40 = $250
2X = $250 + $40
2X = $<<250+40=290>>290
X = $<<145=145>>145
James owns $<<145=145>>145.
#### 145