What is the quotient and remainder of 4x^3-2x^2+x+1 divided by x+2?

12