I hope I understand what you want to know..

You want the solution process to

$\displaystyle (x^{2}-5x+5)^{(x^{2}-9)}=1$, right?

Remember that $\displaystyle a^{0}=1$ and that $\displaystyle 1^{b}=1$ for all $\displaystyle a$ and $\displaystyle b$, and you should be able to solve it.