If you make two horner scheme's, one with divisor 1 and the other one with divisor -2 (and at the end let the remainder =0) then you'll come to two simultaneous equations with variables a and b which you can solve directly.

(Notice: the coefficient of x is 0).