Although I know how to start, at a certain point I get stuck. Here's what I tried: $$\sqrt{x-4\sqrt{x-4}}+\sqrt{x+5-6\sqrt{x-4}}=a \iff \sqrt{x-4 + 4\sqrt{x-4} + 4}+\sqrt{x-4-6\sqrt{x-4} + 9}=a \iff |\sqrt{x-4}-2|+|\sqrt{x-4}-3|=a$$ As well, $x\geq 4$.
1.$\sqrt{x-4}<2 \iff x - 4<4 \iff x < 8$: $$5-a = 2\sqrt{x-4} \iff 25-10+a^2 = 4(x-4)$$ And, because in the initial equality the term on the right hand is a square root, thus a positive number, $a\leq5$.
2.$2\leq \sqrt{x-4} < 3 \iff 8\leq x < 13$: $$\sqrt{x-4} - 2 + 3 - \sqrt{x-4} = a \iff a = 1$$
3.$\sqrt{x-4}\geq 3 \iff x\geq 13$: $$2\sqrt{x-4} = 5+ a \iff 4(x-4)=25 + 10a + a^2$$
From here, I am not sure how to proceed to find $a$. As well, I do not understand what the second branch is supposed to tell, that for any $x$ between $8$ and $13$, for the equality to hold, $a$ must be $1$? Any help or explanations are highly appreciated!
You have a good start. Now it's time to consider how many solutions for $x$ there are for given values of $a$.
This has one solution for $x$ if $1 < a \leq 5$.
If $a=1$, there are infinitely many solutions: Every value in the range $8 \leq x < 13$ satisfies the equation.
This has one solution for $x$ if $a \geq 1$.
Finally, to have exactly two solutions we must have $a \neq 1$ and a solution from case 1 and a solution from case 3. We know the value of $x$ from case 1 is not the same as the value of $x$ from case 3 since both $\sqrt{x-4} < 2$ and $\sqrt{x-4} \geq 3$ can't be true for the same value $x$. This happens if and only if $1 < a \leq 5$.