Oxidation is the removal of hydrogen and reduction is the addition of hydrogen.
This is demonstrated by an example as foloows:
Fe2O3 + 3CO → 2Fe + 3CO2
In the reaction above, Fe got reduced while Carbon got oxidized by gaining oxygen.
(b) Chemical equation for burning of magnesium ribbon:
2Mg + O2→ 2MgO
(i) Substance oxidized is Mg (ii) Substance reduced is O2