>>414
P(x) = Q(x) (x-2)(x+1) + a(x-2) +8
P(-1) = -3a + 8 = -1

a = 3