So let y=mol of H+ in the solution with pH 3.67
-log10(y/0.05)=3.67
10-3.67=y/0.05
y=1.069×10-5
so from this we know that from 0.56 g of HX there will be 1.069×10-5 of H+ and X- produced.
I think you are ok up to here.
From a cursory glance it looks like from here you have based you subsequent calculations on the assumption that the concentration [X
-] is linearly related to the amount of HX added. This not true for a weak acid, consider:
Ka = [H
+][X
-]/[HX]
You have enough information to calculate Ka - do that and g from there.
--
*Demonstration of non linearity:
Let [H
+] = [X
-] = x; [HX] = C, where C is the initial concentration of HX (before equilibrium is reached)
Ka = x
2/(C-x)
x
2 + xKa - CKa = 0
x = -Ka ± sqrt(Ka
2 + 4CKa)
This shows that, for example, doubling C does not double x. The relationship is non linear.