3x + 5
x + 4 [ 3x^2 + 17 x + 25 ]
3x^2 + 12x
_________________
5x + 25
5x + 20
___________
5
So..... 3x + 5 R 5 / [ x + 4 ]
Second one
5x - 1
x - 8 [ 5x^2 - 41x + 3 ]
5x^2 - 40x
______________
-1x + 3
-1x + 8
__________
-5
So... 5x - 1 R -5 / [ x - 8 ]