Let x = 2 to find A. Then let x = 0 to find B using the
fact that c = 6.
Alternatively, expand out the terms and compare the
coefficients.
But lets say we apply your method to the question, you'll get
x^3 + 3x^2 - 2x +16 = 4a + b
32 = 4a +b
it's still impossible to find the answer. i did try using this
method earlier. but i might have overlooked some essential
statements.