Consider polynomials $P(x)$ of degree at most $3$, each of whose coefficients is an element of $\{0,1,2,\dots,9\}$. How many such polynomials satisfy $P(-1)=-5$?
With $P(x)=ax^3+bx^2+cx+d$ we need $a+c=b+d+5$. Put $b'=9-b$, $d'=9-d$: then $a+b'+c+d'=23$ with all variables in $\{0,\dots,9\}$.
Replacing each variable $v$ by $9-v$, this is the same as counting solutions of $u_1+u_2+u_3+u_4=36-23=13$ with $0\le u_i\le9$.
Without the upper bound there are $\binom{16}3=560$ solutions. A solution with $u_i\ge10$ corresponds to a solution of $u_1+\dots+u_4=3$, and there are $\binom63=20$ of these for each $i$. Two variables cannot both be $\ge10$.