In this case, as both of the reactants are completely consumed, one infers that the following stoichiometric relationship leads to the produced moles of the product; hydrochloric acid:
It is important to notice that based on the undergoing chemical reaction, 1 mole of hydrogen is related with 2 moles of hydrochloric acid, that is why he product's moles doubles the hydrogen's moles.