Please reason step by step, and put your final answer within \boxed{}.
A laboratory needs flasks, test tubes, and safety gear to carry out its experiments. They were given a $325 budget for the month. They bought some flasks, spent two-thirds of that amount on test tubes, and used half of the test tube cost on safety gear. They had $25 of their budget remaining. How much did they spend on flasks?
user