Find the inverse

f(x)= -2+7

no inverse. Hopwever, if you meant

f(x) = -2x+7, then
f-1(x) = (7-x)/2