$$36x \equiv 81 \pmod{21}$$
This is what I got, I made it in another way, but I have to do this with Fermat's little theorem.
This is what I made:
$$\begin{align}36x &\equiv 81 \pmod{21}\\ 12x &\equiv 27 \pmod 7\\ \gcd(12,7)&=1\end{align}$$
$\varphi(7)=6$
$$x ≡ 27 * 12 ^{\varphi(7)-1}\equiv 6\cdot(-2)^5 \equiv -(-2)^5 = 25 = 32 ≡ 4 \pmod 7$$
$$x \in \{4, 11, 18\}$$
And this is where I got stuck with Fermat's little theorem:
$$\begin{align}36x &\equiv 81 \pmod{21}\\ 6^2 &\equiv 9^2 \pmod{21}\end{align}$$
Now what should I do? I was looking for examples, but unfortunately I didn’t understand.