Do this guy to get your brain going again:
Long division with polynomials works the same way. You just have to deal with x junk along the way.
Let's walk through one:
Set it up:
So, we are looking at
The easiest thing to do is to write it like