Gọi số mol Al, Mg là a, b (mol)
=> 27a + 24b = 7,8 (1)
\(n_{HCl}=\dfrac{29,2}{36,5}=0,8\left(mol\right)\)
PTHH: 2Al + 6HCl --> 2AlCl3 + 3H2
a---->3a
Mg + 2HCl --> MgCl2 + H2
b-->2b
=> 3a + 2b = 0,8 (2)
(1)(2) => a = 0,2 (mol); b = 0,1 (mol)
\(\left\{{}\begin{matrix}m_{Al}=0,2.27=5,4\left(g\right)\\m_{Mg}=0,1.24=2,4\left(g\right)\end{matrix}\right.\)