This is just long division of polynomials. I'll walk you through the first one.

We need to find the correct multiple of to get to the level of . That multiple is .

So we multiply and subtract that from , which leaves us with . Now, how many times will go into this? .

So and we subtract out , leaving us with . Finally, we see that we need a multiple of -7 for the last step:

and we subtract this from to yield 4.

The answer is therefore: