I guess I'm supposed to solve it with Euclidian ring (or Euclidian domain), but I'm not even sure about that.
$$10x^{39 }+ 8x^{20} + 9x^3 + 7x ≡ 0\pmod {19}$$
I've managed to turn it into $(10x^{19}+8)x^{17}+9)x^2+7)x$ But after that I have no clue what I'm supposed to do.
$19$ is prime.
There are no zero divisors in the ring $\mathbb Z_p$
From what you have above either $x\equiv 0 \pmod {19}$ or $(10x^{19}+8)x^{17}+9)x^2+7)\equiv 0\pmod{19}$
What else can we say? By Fermats little theorem $x^p = x\pmod p$
$10x^{39} + 8x^{20} + 9x^3 + 7x\equiv 10x^3 + 8x^2 + 9x^3 + 7x\equiv (19x^2 +9x + 7)x \pmod {19}$
$19x^2\equiv 0 \pmod {19}$ so we can drop this term.
$9x + 7 \equiv 0\\ 18 x + 14 \equiv 0\\ -x + 14 \equiv 0\\ x \equiv 14$
We have two solutions $x\equiv 0, x\equiv 14 \pmod 14$