Question 142986
Read this --> http://www.purplemath.com/modules/polydiv2.htm

Now let's divide x^2 +5x +4 by x+3

Go here to see it done --> http://www.calc101.com/webMathematica/long-divide.jsp#topdoit

Then folow the steps to understand how to do it by hand for your test :)