Tutor @MathLover1 has shown finding the inverse by the traditional formal algebraic method -- switching the x and y and solving for the new y.
For many relatively simple functions, it is far easier to find the inverse using the idea that an inverse "gets you back where you started from".
To "get you back where you started from", an inverse function has to perform the opposite operations in the opposite order, compared to the original function.
In this example, the function does the following operations on the input:
(1) multiply by 3
(2) subtract 5/2
So the inverse function has to
(1) add 5/2
(2) divide by 3
So the inverse function is
Much less work than the formal algebraic method....