A student dissolved sugar into 300 mL of water. The mass of the water is 300 grams and the mass of the beaker is 24.7 grams. What was the mass of the sugar that was dissolved into the water?