Let x be the unknown number.

Then `x^2-5x=40+x`

`x^2-6x-40=0`

`(x-10)(x+4)=0`

So by the zero product property either x=10 or x=-4.

Since we are asked for a negative number, x=-4.

-----------------------------------------------------------------

**The number is -4**

----------------------------------------------------------------