Simplify (x^2-3x-40)/(x+5)