For the first equation:
When x=-5



When x=-1



For the second equation:
When x=5




when x=-1




Now, we need to know the value for n to make the function continues:
We need to find when:
Lim when x tends to a of f(x)= f(-1)
Lim when x tends to -1 (negative)=-4
Lim when x tends to -1(positive) of -2+3n=-4
Solve for n :
-2+3n = -4
3n = -4+2
3n = -2
n=-2/3