before those 0.05 mol [A-] did - under the influence of NaOH - become [A-] , they of course had been HA , too
so, if your equilibrium calls for 0.05 mol A- and , as counterpart in this buffer, for 0.0247 mol HA, then, of course, you'd have had need for n0 = 0.05 + 0.0247 mol = 0.0747 mol HA , total ( i.e. before adding NaOH), to begin with.
... meaning m = n * M = 9.12236... g = 9.12 g HA
regards
Ingo