That is an ordinary linear equation. You want to isolate x on one side and numbers on the other. The first step is to add (1/2) to both sides - the 3 is fine where it is. Then · · ·If y= f(x) then \(\displaystyle x= f^{-1}(y)\). That's the definition of 'inverse function'.
So your problem is to solve the equation \(\displaystyle 3x- (1/2)= 3\). Can you do that?