X.2 +8x +15/x+5

I will assume you meant to type

(x^2 + 8x + 15)/(x+5)
and you want to simplify it

= (x+5)(x+3)/(x+5)
= x+3 , x ≠ -5