I can't tell you the answer but I'll happily show you the technique.
If we had 5g of calcium and excess oxygen, we can work out the theoretical yield of calcium.
the number of moles of Ca is 5/40 = 0.125
the relative mass of Calcium is 40, meaning that 1 mole of Ca has a mass of 40g. (The relative mass of each element is shown on the periodic table.)
moles are a way of counting the number of particles in a sample. Calcium atoms are heavier than magnesium atoms, so if you had 5g of each, you would have more atoms of magnesium.
the equation for the oxidation of calcium is similar to the Mg equation
2Ca + O
2 2CaO
What this means is that 1 mole of Calcium produces 1 mole of Cao, so if we have 0.125 moles of Ca, we'll get the same number of moles of CaO
The relative mass of CaO is calculated by adding the relative masses of calcium and oxygen, which is 40 + 16 = 56
so, the mass of CaO produced is 56 x 0.125 = 7g
You can use the same technique to figure out the mass of MgO produced.