J.R. S. answered 10/16/20
Ph.D. University Professor with 10+ years Tutoring Experience
First, we can find the mass of H2O lost and from that, convert it to moles of H2O that were present.
5.061 g - 2.472 g = 2.589 g of H2O
moles H2O = 2.589 g H2O x 1 mol H2O/18 g = 0.1438 moles H2O
moles MgSO4 = 2.472 g MgSO4 x 1 mol MgSO4/120.4 g = 0.0205 moles MgSO4
Now we find the ratio of H2O to MgSO4: 0.1438 mol/0.0205 moles = 7.01
We now know that the value of x = 7 and the formula for the compound is MgSO4•7H2O