Đáp án:
$B$
Giải thích các bước giải:
Ta có thể thấy X có hai hóa trị 2 và 3 trong hợp chất
Nên X là Fe
$Fe+2HCl\to FeCl_2+H_2\\ FeCl_2+2AgNO_3\to Fe(NO_3)_2+2AgCl\\ Mg+Fe(NO_3)_2\to Mg(NO_3)_2+Fe\\ 2Fe+3Cl_2\xrightarrow{t°} 2FeCl_3\\ FeCl_3+3NaOH\to Fe(OH)_3+3NaCl\\ 2Fe(OH)_3\xrightarrow{t°} Fe_2O_3+3H_2O\\ Fe2O_3+3H_2\xrightarrow{t°} 2Fe+3H_2O$