\(n_{H_2} = \dfrac{6,72}{22,4} = 0,3(mol)\\ Mg + 2HCl \to MgCl_2 + H_2\\ 2Al + 6HCl \to 2AlCl_3 + 3H_2\)
\(\left\{{}\begin{matrix}Mg:x\left(mol\right)\\Al:y\left(mol\right)\end{matrix}\right.\)→ \(\left\{{}\begin{matrix}24x+27y=6,3\\x+1,5y=0,3\end{matrix}\right.\)→ \(\left\{{}\begin{matrix}x=0,15\\y=0,1\end{matrix}\right.\)
Vậy :
\(\%m_{Mg} = \dfrac{0,15.24}{6,3}.100\% = 57,14\%\)