If f is a one-to-one function such that f(-3)=5, find x given that f-1​(5)=3x-1.

is this the correct way to solve the problem?

-3=3x-1
-2=3x
x=-2/3