You can always check the answer by plugging in the values of a and b, and the dividing by the given polynomials and see if the remainders match. To be honest, the numbers seem very ugly.

The easiest way is to plug in the values of x and then have a system of equations for a and b.