An 82.0 g sample of hydrated magnesium sulfate (MgSO4) is heated to constant mass of 40.1 grams. What is the formula for the hydrate?