We have,
28 – 31x – 5x2
– 5x2 -31x + 28
5x2 + 31x – 28
The coefficient of x2 is 5
The coefficient of x is 31
Constant term is -28
So, we express the middle term 31x as -4x + 35x
5x2 + 31x – 28 = 5x2 – 4x + 35x – 28
= x (5x – 4) + 7 (5x – 4)
= (x + 7) (5x – 4)