find f^-1(x)

f(x)=x-5

I think that means find the inverse?

Well if that's the case, my teacher said to switch x with y. so

x=y-5
5=y

I think that's correct, but im not sure.