For how many integers $a$ does the equation $(x^2-a^2 ) \sqrt{(5-x)}=0$ have three different solutions?
The options were: $10, 9, 8, $other.
I say other.
No matter what, $\sqrt{5-x} = 0$ always has one solutions.
Then it is remaining to solve:
$x^2 - a^2 = 0 \implies x^2 = a^2 \implies x = \pm a$, which is true for any $a$ really, except $a=0$.
Assuming:
We need three distinct solutions.
Consider $(x^2-a^2)=0\implies x=\pm a$ if $a\ne0$, else two solutions will be $0$.
Consider $\sqrt{5-x}=0\implies x\le5$, else $\sqrt{5-x}$ goes imaginary.
If $a=5$, then two solutions will be $5$, one contributed by $\sqrt{5-x}=0$ and one by $(x^2-5^2)=0$.
Hence the only integer options left with us are $\pm 1,\pm2,\pm3,\pm4$, that is, 8 choices for $a$.
However, if imaginary numbers are allowed, all values of $a$ except $0,5$ works.