Remember that when quantities of 2 reactants are given, the problem is a "limiting factor" problem and must be solved for each reactant separately.

Solving from the 20 grams of HF...

Solving from the 20 grams of NaOH...

The answer 21 grams of NaF is the smaller number and that is the correct answer.