\(n_{Mg}=\dfrac{6}{24}=0,25\left(mol\right)\\ PTHH:Mg+2HCl\rightarrow MgCl_2+H_2\uparrow\)
0,25 ---> 0,5 ---> 0,25 ---> 0,25
\(V_{H_2}=0,25.22,4=5,6\left(l\right)\\ m_{MgCl_2}=0,25.95=23,75\left(g\right)\\ m_{HCl}=0,5.36,5=18,25\left(g\right)\\ m_{ddHCl}=\dfrac{18,25}{18,25\%}=100\left(g\right)\\ m_{H_2}=0,25.2=0,5\left(g\right)\\ m_{dd}=100+6-0,5=105,5\left(g\right)\\ C\%_{MgCl_2}=\dfrac{23,75}{105,5}=22,51\%\)