Mg+B→A. A is
Boron has an oxidation state of '+3', accordingly it forms Mg3B2 as oxidation state of Mg is '+2'.
Mg+B→Mg3B2