When the polynomial f(x) = 4x3 + 8x2 + 8x + 7 is divided by the polynomial g(x) = 2x2 - x + 1, the quotient and the remainder are