\(\frac{x^2}{5x+25}-\frac{10-2x}{x}+\frac{5x+50}{5x+x^2}=\frac{x^2}{5\left(x+5\right)}-\frac{10-2x}{x}+\frac{5x+50}{x\left(x+5\right)}\)
\(=\frac{x^3}{5x\left(x+5\right)}-\frac{5\left(x+5\right)\left(10-2x\right)}{5x\left(x+5\right)}+\frac{5\left(5x+50\right)}{5x\left(x+5\right)}\)
\(=\frac{x^3+10x^2+25x}{5x\left(x+5\right)}=\frac{x\left(x+5\right)^2}{5x\left(x+5\right)}=\frac{x+5}{5}\)