Answer :
we have the following:
[tex]\left(x^5+9x^4+8x^3-25x^2+19x+17\right)\div\left(x+3\right)[/tex]| 1 9 8 -25 19 17
-3 | -3 -18 30 -15 -12
------------------------------------------
| 1 6 -10 5 4 5
therefore:
[tex]x^4+6x^3-10x^2+5x+4,\text{ Rest: 5}[/tex]