When the polynomial p(x)=Ax^21+Bx^17+Cx^9+8 is divided by x-5 the remainder is 12. find the remainder when P(x) is divided by x+5.