To find the values of \( a \) and \( b \), we perform polynomial division on \( \frac{x^4 - x^3 + 2x^2 + ax + b}{x^2 - 3x + 2} \). After dividing, we get the quotient and the remainder. For the polynomial to be exactly divisible, the remainder must be zero. Solving the equations for the coefficients of the remainder will yield \( a = -14 \) and \( b = 12 \).