Answer: 2 grams of oxygen is reacted with magnesium.
Step-by-step explanation:
Law of conservation of mass states that mass can neither be created nor be destroyed but it can only be transformed from one form to another form.
This also means that total mass on the reactant side must be equal to the total mass on the product side.
The chemical equation for the reaction of magnesium and oxygen follows:

Let the mass of oxygen be 'x' grams
We are given:
Mass of magnesium = 51 grams
Mass of magnesium oxide = 53 grams
Total mass on reactant side = 51 + x
Total mass on product side = 53
So, by applying law of conservation of mass, we get:

Hence, 2 grams of oxygen reacts with the given amount of magnesium.