On dividing x3 – 3x2 + x + 2bya polynomial g(x), the quotient and remainder were

On dividing x3 – 3x2 + x + 2bya polynomial g(x), the quotient and remainder were x – 2 and -2x + 4 respectively. Find g(x).