Evaluate the following limit

lim x^2 + 3x - 40
x-->5 -------------
3x + 10 - x^2

(x-5)(x+8)

-----------
-(x-5)(x+2)

(x+8)
=------
-(x+2)

now do the limit as x ---> 5