AMC 12B 2018 Problem 22

Consider polynomials P(x) of degree at most 3 , each of whose coefficients is an element of \{0,1,2,3,4,5,6,7,8,9\}. How many such polynomials satisfy P(-1)=-9 ?

Answer Choices
A. 110
B. 143
C. 165
D. 220
E. 286