The total weight (MgSO₄ + xH₂O) = 2.000 g
Weight of anhydrous, that is, without water magnesium sulfate = 0.977 g
Weight of xH₂O = 2.000 - 0.977 = 1.023 g
Moles of water = Weight / molecular mass
= 1.023 / 18 = 0.057
Moles of MgSO₄ = 0.977 / 120.366 = 0.0081
0.0081 mole (0.977) MgSO₄ hydrated with = 0.057 mol of water
1 mole will react with = 7 mol of water
Chemical formula of the Epsom salt = MgSO₄.7H₂O