See the attach image for all explanation. I have done this by hand because its very difficult or impossible to write the division method here.
I have done first part with both synthetic(short ) and long division and describe both method for you, both method give the same answer, the second question is only done with long division.