Which element is reduced in the following reaction: 2Mg+O₂ → 2MgO if Mg goes from 0 to +2 and O goes from 0 to -2?

Mg and O

O

Mg

Neither element