Hint $\ $ Recall from high-school the AC-method that transforms factoring any polynomial into one that is $\,\rm\color{#c00}{monic}\,$ (lead coeff $=1)$ e.g. as follows:
$$\quad\ \ \begin{eqnarray}
f &\,=\,& \ \ 9\ x^2-\ 80\ x\ -\,\ 9\\
\Rightarrow\ 9f &\,=\,& (9x)^2\! -80(9x)-81\\
&\,=\,& \ \ \ \ \color{#c00}{X^2\!- 80\ X\ -\,\ 81},\,\ \ X\, =\, 9x\\
&\,=\,& \ \ \ \,(X-81)\ (X+\,1)\\
&\,=\,& \ \ \ (9x-81)\,(9x+1)\\
\Rightarrow\ f\,=\, 9^{-1}(9f) &\,=\,& \ \ \ \ \ (x\ -\ 9)\,(9x+1)\\
\end{eqnarray}$$
If we denote our factoring algorithm by $\,\cal F,\,$ then the above transformation is simply
$$\cal F f\, = a^{-1}\cal F\, a\,f\quad\,$$
Thus we've transformed by $ $ conjugation $\,\ \cal F = a^{-1} \cal F\, a\ \,$ the problem of factoring non-monic polynomials into the simpler problem of factoring monic polynomials.
This is sometimes called the AC method. It works for higher degree polynomials too. As above, we can reduce the problem of factoring a non-monic polynomial to that of factoring a monic polynomial by scaling by a $ $ power of the lead coefficient $\rm\:a\:$ then changing variables: $\rm\ X = a\:x$
$$\begin{eqnarray} \rm\: a\:f(x)\:\! \,=\,\:\! a\:(a\:x^2 + b\:x + c) &\,=\,&\rm\: X^2 + b\:X + \!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\smash[t]{\overbrace{ac}^{\rm\qquad\ \ \ \ \ {\bf AC-method}}}\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\! =\, g(X),\ \ \ X = a\:x \\
\\
\rm\: a^{n-1}(a\:x^n\! + b\:x^{n-1}\!+\cdots+d\:x + c) &\,=\,&\rm\: X^n\! + b\:X^{n-1}\!+\cdots+a^{n-2}d\:X + a^{n-1}c
\end{eqnarray}$$
After factoring the monic $\rm\,g(X)\, =\, a^{n-1}f(x),\,$ we are guaranteed that the transformation reverses to yield a factorization of $\rm\:f,\ $ since $\rm\ a^{n-1}$ must divide into the factors of $\rm\ g\ $ by Gauss' Lemma, i.e. primes $\,p\in\rm\mathbb Z\,$ remain prime in $\rm\,\mathbb Z[X],\,$ so $\rm\ p\ |\ g_1(x)\:g_2(x)\,$ $\Rightarrow$ $\,\rm\:p\:|\:g_1(x)\:$ or $\rm\:p\:|\:g_2(x).$
Clearly this resolves your problem (and more). See this answer for further discussion.