Here is what I did i consider that $x$ is a positive integer $$27^2=x^x(54-x^x)$$ so we can see the divisors of $27$ and then deduce the value of $x$
since the sum of these two divisors must be $54$
then $x^x=27$ $x=3$
and we have the functions $f(x)=x^2x+27^2$ and $g(x)=54x^x$ have only one point of intersection
so $3$ is the only positive solution
But what if $x$ is negative ?
Hint : Solve for $y=x^x$, it becomes a polynomial of degree 2.