Molarity= no. of molecules of solute /1 liter
one moles of sodium hydroxide =49 gm of sodium hydroxide
So we can say that if we want to prepare 1 molar NaOH solution then we need 40 gm NaOH dissolve in one liter of water so it can become one 1 molar NaOH solution.