nMg=9,6/24=0,4 mol
Mg=Mg+2 +2e
=> n e nhường= 0,8 mol
nH2SO4=49/98=0,5 mol
BTNT, nMg=nMgSO4=0,4 mol
=> 0,4 mol H2SO4 tạo muối; 0,1 mol H2SO4 là chất oxh
S+6 +(6-x)e =S+x
nS+6 (oxh)= 0,1 => n e nhận= 0,1(6-x) mol
=> Ta có pt 0,1(6-x)=0,8
=> x=-2
=> Khí X là H2S (S có số oxh -2)