The reaction of magnesium with hydrochloric acid shown is carried out and the gas is collected in a closed flask by bubbling it through water.
Mg(s) + 2HCl(aq) → MgCl2 (aq) + H2 (aq).
Assuming that the total pressure of gas in the flask is 742 mmHg, how many total moles of gas are present?