How do I find the inverse of #f(x)=(x-5)^2#?

I got to the point were it equals #x=y^2-10y+25# but I don't know how to isolate #y#