Answer :

Given the shown expression

[tex]\frac{y^2}{y^2-25}+\frac{25-10y}{y^2-25}[/tex]

simplifying

[tex]\frac{y^2+25-10y}{y^2-25}[/tex][tex]\frac{\left(y-5\right)^2}{y^2-25}[/tex][tex]\frac{\left(y-5\right)^2}{\left(y+5\right)\left(y-5\right)}[/tex][tex]\frac{\left(y-5\right)\left(y-5\right)}{\left(y+5\right)\left(y-5\right)}[/tex][tex]\frac{y-5}{y+5}[/tex]