Dear student ,I think that the element you wanted to say was Mg
Let the acid be HCL
Reaction;Mg+2HCL→MgCl2+H2
This shows that 1 mole of Mg(atomic mass=24g)will produce 1 mole of H2(Molar mass=2g)
24g of Mg will produce =1 mole of hydrogen
Thus 12g of Mg will produce=1 mole of hydrogen×12g÷24g=0.5moles of hydrogen
At STP (Standard Temperature and Pressure:0º C and 1 atm), 1 mole of gas takes up 22.4 L of volume.
Therefore 0.5 mole takes
22.4/2 = 11.2L
Volume occupied by hydrogen gas is 11.2 L