Explanation:
it means that x has now to be the result variable, and y the input variable.
so,
y = 3x - 5
y + 5 = 3x
x = (y + 5)/3
and as a final touch, to make the inverse a "normal function", we rename x to y and y to x and get
y = (x + 5)/3
as the inverse function