Enter the amount of solute and the volume of solution.
Molarity (M) = moles of solute ÷ litres of solution; moles = grams ÷ molar mass.
5.844 g of NaCl (58.44 g/mol) is 0.1 mol. Dissolved to 0.5 L, that is 0.1 ÷ 0.5 = 0.2 M.