Relax

Respuesta :

Hydrogen, in the compounds with metals, forms anion H¹⁻.

Mg²⁺ H¹⁻,
so formula MgH2.