a, PT: \(2Al+6HCl\rightarrow2AlCl_3+3H_2\)
\(Mg+2HCl\rightarrow MgCl_2+H_2\)
b, Gọi: \(\left\{{}\begin{matrix}n_{Al}=x\left(mol\right)\\n_{Mg}=y\left(mol\right)\end{matrix}\right.\) ⇒ 27x + 24y = 7,8 (1)
Ta có: m dd tăng = mKL - mH2 ⇒ mH2 = 7,8 - 7 = 0,8 (g)
\(\Rightarrow n_{H_2}=\dfrac{0,8}{2}=0,4\left(mol\right)\)
Theo PT: \(n_{H_2}=\dfrac{3}{2}n_{Al}+n_{Mg}=\dfrac{3}{2}x+y=0,4\left(mol\right)\left(2\right)\)
\(\Rightarrow\left\{{}\begin{matrix}x=0,2\left(mol\right)\\y=0,1\left(mol\right)\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}\%m_{Al}=\dfrac{0,2.27}{7,8}.100\%\approx69,23\%\\\%m_{Mg}\approx30,77\%\end{matrix}\right.\)