P(x)=(x+3)Q(x) +4
Q(x)=(x−2)R(x) +5
↓
P(x)=(x+3){(x−2)R(x) +5} +4

P(2)=(2+3){(2−2)R(2) +5} +4=29