Find constants A and B such that \frac{2x + 11 - 5x + 17}{x^2 - x - 2} = \frac{A}{x - 2} + \frac{B}{x + 1} for all $x$ such that $x\neq -1$ and $x\neq 2$.