Answer
The equation for the rational function
[tex]y=\frac{(x+b)}{(x-2)}[/tex]y-intercept of -2 means x=0
substitute when y= -2 and x=0
[tex]\begin{gathered} -2=\frac{(0+b)}{(0-2)} \\ \\ \\ -2=\frac{b}{-2} \\ \\ b=4 \end{gathered}[/tex]The final answer
[tex]y=\frac{x+4}{x-2}[/tex]