x^-7x-8

i think you mean

x^2 - 7x - 8 = (x-8)(x+1)