\(a,\text{*Mg chỉ hóa trị II thôi nha bạn }\\ CTTQ:Mg_x^{II}Cl_y^I\\ \Rightarrow x\cdot II=y\cdot I\Rightarrow\dfrac{x}{y}=\dfrac{1}{2}\Rightarrow x=1;y=2\\ \Rightarrow MgCl_2\\ b,CTTQ:S_x^{IV}O_y^{II}\\ \Rightarrow x\cdot IV=y\cdot II\Rightarrow\dfrac{x}{y}=\dfrac{1}{2}\Rightarrow x=1;y=2\\ \Rightarrow SO_2\)