In that event, try using the rational root theorem on the numerator. Try dividing the top by x+5 and see if it reduces to a quadratic. I bet it will. Then, it will be much easier to finish.
Take note, if you multiply the denominator by x+5, what do you get?. I bet you get the numerator.