This is an oxidation-reduction (redox) reaction:
2 BIII + 6 e- → 2 B0 (reduction)
3 Mg0 - 6 e- → 3 MgII (oxidation)
B2O3 is an oxidizing agent, Mg is a reducing agent.
Reactants:
Products: