The molar mass of NaOH is 39.99711. Given mass is 10 grams. So, moles present are 0.25 moles.