Always try to simplify prior graphing. However you have to mention where the function is continued or discontinued.
We notice that the numerator is a quadratic equation. Is roots are : x = -2 and x" = 10 Then the numerator could be written (x+2)(x+10) and the function: y= (x+2)(x+10)/(x+2). Prior to simplifying, you should notice that this function is discontinued for x = -2 (doesn't exist), so the domain is all x# -2. Now you simplify and you will get: y = (x-10) , which is a linear function, but cannot be at x = -2