Answer this maths watch question step-by-step

The value of a is 2 and the value of b is 6.
In math, factoring or factorization is used to write an algebraic expression in factors. There are some rules for factorization. One of them is a factor out a common term for example: x²-x= x(x-1), where x is a common term.
You should factor the given expression.
[tex]2-\frac{x+3}{x+1}-\frac{x-5}{x-1}\\ \\ 2+\frac{-\left(x+3\right)\left(x-1\right)-\left(x-5\right)\left(x+1\right)}{\left(x+1\right)\left(x-1\right)}\\ \\ \mathrm{Apply\:the\:fraction\:rule}:\quad \:a+\frac{b}{c}=\frac{ac+b}{c}\\ \\ \frac{2\left(x+1\right)\left(x-1\right)-\left(x+3\right)\left(x-1\right)-\left(x-5\right)\left(x+1\right)}{\left(x+1\right)\left(x-1\right)}\\ \\ \frac{2x+6}{\left(x+1\right)\left(x-1\right)}=\frac{2x+6}{x^2-1}[/tex]
Read more about the factoring here:
brainly.com/question/11579257
#SPJ1