Your equation is good, take a look at the left side of it, you will see that 1 atom Mg take
2 molecules HCl with a release of 2 H forming quickly H2 so 2/8 of the genesis from H2 is the responsibilty from the Mg. In the calculation you get 0.066575 mol H2 so than divide this amount by 2...