First panel (left side)
See the attached picture.
This really needs to be discussed step-by-step, but that's not possible here.
As you look at the attached picture, you should keep in mind that the
step-by-step procedure is exactly the same as doing plain old numbers
by long-division.
_______________________________
Second panel (right side).
I'm really sorry, but I don't know the polynomial remainder theorem.