the formula for molarity ---> molarity= mol/ Liters
400 mL= 0.400 Liters (divide ml by 1000 to get Liters)
to get the moles, we need to use the grams to convert to moles using the molar mass of the molecules
molar mass NaCl =58.5 g/ mol
29.5 g (1 mol/ 58..5 g)= 0.504 mol
molarity= 0.504 mol/ 0.400 Liters= 1.26 M