The first step in solving this problem is to change grams of HCl to moles. Then the conversion factor "1 mole NaOH/1 mole HCl" is used to relate the moles of NaOH used in the reaction to the moles of HCl used in the reaction and to convert the units of one to the units of the other. This is a very important conversion. The last conversion is to convert moles of NaOH to grams.