For this case, we must build a quotient that, when multiplied by the divisor, eliminates the terms of the dividend until it reaches the remainder.
quotient:

Divisor: x-3
Dividend:

Remainder: 47
It must be fulfilled that:
Dividend = Quotient * Divisor + Remainder
Answer:
See attached image