Please show me the solution for: John buys 3 barbells and gives $850 and gets $40 in change.  How much did each barbell cost?