One gram of an alloy of aluminium and magnesium when heated with excess of dil. HCL forms magnesium chloride, aluminium chloride, and hydrogen. The evolved hydrogen collected at 0∘C has a volume of 1.12 litres at 1 atm pressure. Calculate the composition of (% by mass) of the alloy.