Let's look for the roots of this polynomial in $F := \mathbb{Z} / 19 \mathbb{Z}$. This polynomial can be seen as a polynomial in $F[X]$.
Since $19$ is prime, $F$ is a field. A most enjoyable property of $F$ is that the map $x \mapsto x^{19}$ is the identity. In other words, for any $x \in F$, we have $x^{19} = x$. This allows us to simplify for $x \in F$:
$$\begin{eqnarray} 10x^{39 }+ 8x^{20} + 9x^3 + 7x &=& 10x^{20 }+ 8x^{20} + 9x^3 + 7x \\ =10 x + 8x+ 9x^3 + 7x &=& 9x^3 + 25 x\\ = 9x^3 + 6x\end{eqnarray}$$
Let's factorize this expression : $9 x^3 + 6x = 3 \cdot x \cdot (3x^2 +2)$. Here, we see an obvious solution, $0$ and maybe two other solutions that correspond to the solutions of $3x^2 +2 = 0$.
Now we want the leading coefficient to be $1$, so we multiply by the inverse of $3$ in $F$ : $13$.
$$3x^2 +2 = 0\Longleftrightarrow x^2 + 16= 0 \\ \Longleftrightarrow x^2 = -16 \\ \Longleftrightarrow x^2 = 3$$
Since $3$ isn't a square in $F$, $0$ is the only solution.