6x^3-3x^2+x-40 Divided by x-2

Use Long-hand division.

(6x^3 - 3x^2 + x - 40)/(x-2)=6x^2+9x+19,
Remainder 2.