Burning magnesium ribbon in air removes which of the following (i) oxygen (ii) nitrogen (iii)…