Synthetic division can only be used to divide a polynomial by a linear binomial; you need to use long division.
Do you not know how to do polynomial long division? Here is an example.
2x + 3
-------------------------
3x^2 - 2x + 5 ) 6x^3 + 5x^2 + 6x + 20
6x^3 - 4x^2 + 10x
----------------------
9x^2 - 4x + 20
9x^2 - 6x + 15
---------------
2x + 5
6x^3+5x^2+6x+20, divided by 3x^2-2x+5, is 2x+3 with remainder 2x+5. Or, in the form required in your problem,