I'm not too sure exactly what you're trying to do, but if we take Copper (II) Sulfate as an example, it goes something like this:
CuSO4 (s) is anhydrous whereas CuSO4.xH2O (s) is your hydrated compound. It's a matter of forming the right equation at this point since I suspect the preceding problem allowed you to calculate other important values. I don't know exactly what they gave, so I can't give you a more detailed answer.