\(Fe+2HCl->FeCl_2=H_2\\ Mg+2HCl->MgCl_2+H_2\\ n_{Fe}=a;n_{Mg}=b\\ m_{ddHCl}=\dfrac{36,5.2\left(a+b\right)}{0,25}=292\left(a+b\right)\left(g\right)\\ m_{ddD}=292\left(a+b\right)+24a+56b-2\left(a+b\right)=314a+346b\left(g\right)\\ \%m_{FeCl_2}=\dfrac{127a}{314a+346b}=\dfrac{16,61}{100}\\ a=0,768b\\ \%m_{MgCl_2}=\dfrac{95b}{314a+346b}.100\%=\dfrac{95b}{314.0,768b+346b}.100\%=16,18\%\)