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