A student performs a dehydration experiment and starts with 6.79 grams of hydrate. After heating the hydrate and allowing it to cool, the student weighs the anhydrous salt. The mass of the resulting anhydrous salt is 3.17 grams. What is the mass of the water that was lost?