a: \(P=\dfrac{x\left(x+2\right)}{2\left(x+5\right)}+\dfrac{x-5}{x}-\dfrac{5x-50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+2x^2+2x^2-50-5x+50}{2x\left(x+5\right)}\)
\(=\dfrac{x^3+4x^2-5x}{2x\left(x+5\right)}\)
\(=\dfrac{x\left(x+5\right)\left(x-1\right)}{2x\left(x+5\right)}=\dfrac{x-1}{2}\)