$a,PTPƯ:$
$Mg+2HCl\xrightarrow{} MgCl_2+H_2↑$ $(1)$
$2Al+6HCl\xrightarrow{} 2AlCl_3+3H_2↑$ $(2)$
$n_{H_2}=\dfrac{11,2}{22,4}=0,5mol.$
Gọi $n_{Mg}$ là a (mol), $n_{Al}$ là b (mol).
$(1)$ và $(2)$ $⇒a+1,5b=0,5$ $(*)$
Theo đề bài: $24a+27b=10,2$ $(**)$
$(*)$ và $(**)$
$⇒\left \{ {{a+1,5b=0,5} \atop {24a+27b=10,2}} \right.$ $⇒\left \{ {{a=0,2} \atop {b=0,2}} \right.$
$⇒\%m_{Mg}=\dfrac{0,2.24}{10,2}.100\%=47\%$
$⇒\%m_{Al}=\dfrac{0,2.27}{10,2}.100\%=53\%$
$b,Theo$ $pt1:$ $n_{MgCl_2}=n_{Mg}=0,2mol.$
$⇒m_{MgCl_2}=0,2.95=19g.$
$Theo$ $pt2:$ $n_{AlCl_3}=n_{Al}=0,2mol.$
$⇒m_{AlCl_3}=0,2.133,5=26,7g.$
chúc bạn học tốt!