Use synthetic division to find the result when x4−10x3+3x2+7x−47 is divided by x+2.

Write your answer in the form q(x)+r(x)d(x), where q(x) is the quotient, r(x) is the remainder, and d(x) is the divisor.