\(n_{Mg}=0,3\left(mol\right);n_{Zn}=0,1\left(mol\right)\)
PTHH:
\(Mg+2HCl\rightarrow MgCl_2+H_2\)
\(Mg+2HCl\rightarrow ZnCl_2+H_2\)
\(\Rightarrow n_{MgCl_2}=n_{Mg}=0,3\left(mol\right)\)
\(n_{ZnCl_2}=n_{Zn}=0,1\left(mol\right)\)
\(\Rightarrow m=0,3.95+0,1.136=42,1\left(g\right)\)