y = 3x+5
If you graph this function (by hand or on a graphing calculator) you will see that the graph is increasing. So the function satisfies the Horizontal Line Test (i.e., it is one to one). Therefore, the function has an inverse function.
To find the inverse function, switch x and y and then solve for y.
Switch x and y: x = 3y + 5
Solve for y: 3y = x-5
log3(3y) = log3(x-5)
y = log3(x-5)
As far as graphing is concerned, you can obtain the graph of the inverse function by reflecting the graph of the original function in the line
y = x.