I'm having problems with two questions from my hw. I have no idea where to even start to solve the problems. Please help as much as you can!! Thanks!

1. When x^3 - 7x + 4 is divided by the polynomial D(x), the quotient is x^2 - 3x + 2 and the remainder is -2. Find D(x).

2. Find k so that when x^3 + kx^2 + k^2x + 14 is divided by x+2, the remainder is 0.