The function \( f(x) = 3x + 5 \) has an inverse function \( f^{-1}(x) \). If the output of the inverse function is 7, what was the original input to the function \( f(x) \)? Let's think step by step and output the final answer within \boxed{}.
user