\(C=\dfrac{2x}{x-3}-\dfrac{3x+9}{x^2-9}\)
\(C=\dfrac{2x}{x-3}-\dfrac{3\left(x+3\right)}{x^2-3^2}\)
\(C=\dfrac{2x}{x-3}-\dfrac{3\left(x+3\right)}{\left(x-3\right)\left(x+3\right)}\)
\(C=\dfrac{2x}{x-3}-\dfrac{3}{x-3}\)
\(C=\dfrac{2x-3}{x-3}\)
============================
\(D=\left(\dfrac{15-x}{x^2-25}+\dfrac{2}{x+5}\right):\dfrac{x+1}{x-5}\)
\(D=\left(\dfrac{15-x}{\left(x+5\right)\left(x-5\right)}+\dfrac{2\left(x-5\right)}{\left(x+5\right)\left(x-5\right)}\right):\dfrac{x+1}{x-5}\)
\(D=\left(\dfrac{15-x+2x-10}{\left(x+5\right)\left(x-5\right)}\right):\dfrac{x+1}{x-5}\)
\(D=\left(\dfrac{x+5}{\left(x+5\right)\left(x-5\right)}\right):\dfrac{x+1}{x-5}\)
\(D=\dfrac{1}{x-5}:\dfrac{x+1}{x-5}\)
\(D=\dfrac{1}{x-5}\cdot\dfrac{x-5}{x+1}\)
\(D=\dfrac{1}{x+1}\)