To calculate the mass or percent error you need to do the following:
First: Find procedural error that affects the mass of magnesium oxide: So if Mg reacted incompletely the mass of MgO is lower than theoretical:
W is "yeild"
m' is mass of Mg
m is mass of MgO
m" is mass of O
m' m
2Mg + O2=2MgO
2*24.3 2*(24.3+16)
m=40.3m'/24.3=1.66m'
If reacted 90% you'll get m=0.9*1.66m'
Second: Find procedural error that affects the mass of oxygen in magnesium oxide: Now you need to conect unreacted Mg with O from MgO
2Mg + O2=2MgO
The scheme of this process is:
m' m"
2Mg--->O
2*24.3 16
m"=16*m'/2*24.3=0.33m'