A bag contains a certain number of identical marbles. Each marble weighs 10 grams. After removing 7 marbles, the bag weighs 230 grams. After removing a total of 10 marbles, the bag weighs 200 grams. How many marbles were initially in the bag? Let's think step by step and output the final answer within \boxed{}.
user