Read the denominator
Three measures, three denominators, and the denominator is the whole story.
Molarity: , C equals n over V. is the molar concentration in mol/L, is the amount of solute in moles, and is the volume of finished solution in litres — not the volume of solvent you started with. It is the working chemist's default because volume is what a pipette measures.
Molality: , b equals n over m-solvent. is in mol/kg, is again the moles of solute, and is the mass of solvent alone, in kilograms, weighed before the solute ever arrived. Masses do not expand when the room warms, so molality holds still where molarity drifts — which is exactly why the colligative laws in the next lesson are written on it.
Mass percent: . Here is the solute's mass and is the mass of everything in the beaker, solute included. The classic slip is dividing by the solvent instead — the solute is part of what it is a percent OF, so it belongs downstairs too. Notice the family resemblance: molarity's denominator is the solution, molality's is the solvent, and mass percent goes back to the solution. Read the denominator, name the measure.