The other tutor showed you the formal algebraic method for finding the inverse: switch the x and y and solve for the new y.
Here is an alternative method that can often be used to find the inverse of relatively simple functions. In cases where it can be used, it is usually a lot less work and therefore much faster than the algebraic method.
This method is based on the concept that the inverse function "undoes" what the function does.
What does the given function do to the input value? It
(1) multiplies it by 7 and then
(2) subtracts 5
To undo that, the inverse function has to do the opposite operations, in the reverse order. So what the inverse function has to do to its input is
(1) add 5 and then
(2) divide by 7