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

### Instruction:
John buys 3 barbells and gives $850 and gets $40 in change.  How much did each barbell cost?

### Response:
The total price for the barbells was 850-40=$<<850-40=810>>810
So each one cost 810/3=$<<810/3=270>>270
#### 270