\(a,CTTQ:K_x^IO_y^{II}\\ \Rightarrow x\cdot I=y\cdot II\Rightarrow\dfrac{x}{y}=2\Rightarrow x=2;y=1\\ \Rightarrow K_2O\\ b,CTTQ:Mg_x^{II}\left(NO_3\right)_y^I\\ \Rightarrow x\cdot II=y\cdot I\Rightarrow\dfrac{x}{y}=\dfrac{1}{2}\Rightarrow x=1;y=2\\ \Rightarrow Mg\left(NO_3\right)_2\)
