If ax^3 + bx^2 + x - 6 has x + 2 has a factor and leaves a remainder 4 when divided by x - 1, find the values of a and b.