To add or subtract expressions, expand them to make their denominators the same. Least common multiple of $x+1$ and $2\left(x+1\right)$ is $2\left(x+1\right)$. Multiply $\frac{2}{x+1}$ times $\frac{2}{2}$.
Since $\frac{2\times 2}{2\left(x+1\right)}$ and $\frac{3}{2\left(x+1\right)}$ have the same denominator, subtract them by subtracting their numerators.