how do I convert .000859 mols of hydrogen to mols of Magnesium

I assume you are reacting Mg with HCl to produce H2.

write the equation for the reaction between Mg and HCl
Mg + 2HCl ==> MgCl2 + H2

So 1 mol Mg = 1 mol H2.