50 grams of 90% pure magnesium is made to react with excess HCl to form a gaseous product which was made to combine with chlorine gas completely to give a gaseous product. This, on dissolution in 50 ml water, produced a solution. The number of moles of HCl produced is: