Gọi số mol Mg, Al là a, b (mol)
=> 24a + 27b = 0,78 (1)
\(n_{H_2}=\dfrac{0,896}{22,4}=0,04\left(mol\right)\)
PTHH: Mg + 2HCl --> MgCl2 + H2
a---------------------->a
2Al + 6HCl --> 2AlCl3 + 3H2
b---------------------->1,5b
=> a + 1,5b = 0,04 (2)
(1)(2) => a = 0,01 (mol); b = 0,02 (mol)
\(\left\{{}\begin{matrix}\%m_{Mg}=\dfrac{0,01.24}{0,78}.100\%=30,77\%\\\%m_{Al}=\dfrac{0,02.27}{0,78}.100\%=69,23\%\end{matrix}\right.\)