We should divide x^2-2 from the equation.
I will spare you from the boring steps of equation dividing.
Now getting 5x+4
Just do this like you are doing long division but instead using variables, be careful there is no x term in the second expression so you have to give it an empty space :)