On dividing by a polynomial g(x), the quotient and remainder were x − 2 and − 2x + 4, respectively. Find g(x).