$x$ is given as a natural number.
I was trying this by direct proof: assume $27\mid x^2$, then $x^2 = 27m \Longrightarrow x=3\cdot \sqrt{3m} \Longrightarrow \sqrt{3m}$ must be integer $\Longrightarrow m$ must be $3^{\text{odd power}}$. Then $\sqrt{3m} =3a$ where $a$ is an integer $\Longrightarrow 3\cdot 3a = 9a$, which is divisible by $9$.
a) Is that legit? b) if not, what's the best/easiest way? (or the correction)
if $27\mid x^2$ then $x$ is either $3,6,$ or $0 \pmod 9$. It is easily seen that $x^2 \neq 27$ unless $x \equiv 0 \pmod{9}$.