To solve this problem, we must understand that a solution is made up of solute dissolved in a solvent. A solute is the solid dissolved in another. The solvent is the is dissolving medium;
Percentage by mass of solute in solution =
Mass of solution = mass of water + Mass of sucrose = 540 + M