You can split the middle term as follows...
Here remember that you have to find out two numbers whose sum is -10(that is coefficient of x and whose product is +9(that is the constant term....
==>
==>
Here (x-9) is common to both the terms....so you can take it outside...