This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Buffer: salt $=5$ mmol and acid $=0.5$ mmol. $pH=pK_a+\log\frac{10}{1}=pK_a+1=5\Rightarrow pK_a=4$, $K_a=10^{-4}=10\times10^{-5}$. So $x=10$. Answer: 10.