if 2x^3-5x^2+x+2=(x-2)(ax^2-bx-1)then a and b are respectively:

Use synthetic(long-hand) division:

(2x^3-5x^2+x+2)/(x-2) = 2x^2-x-1

a = 2, and b = -1.