I haven't solved the whole problem by hand, but here's the idea: you aply the division algorithm to the polynomials 2x^3 with divisor x^2-2x+7 and the polynomial -3x^2 with the same divisor as the anterior. Next you substitute the B and a in the quotient and it is equal to 0. you will then have only operations on numbers.