How to do algebraic long division

How to do algebraic long division