Please reason step by step, and put your final answer within \boxed{}.
Robert spent some amount in buying raw materials, $125 in buying machinery, and 10% of the total amount he had as cash with him. The total amount was $250. How much did he spend on raw materials?
user