Upon heating 8.5g sample of Sodium Sulfate hydrate, it loses 4.776 grams after heating. What steps are necessary for me to find the n for the hydrate?

GIVEN:
Na2SO4 - n H2O
the molar mass of sodium sulfate is 142.05g/mol

You also need the molar mass of water.

Let x represent the amount of sodium sulfate in the sample.

Solve these simultaneous equations:
142.05 x + 18.015 nx = 8.5
18.015 nx = 4.776