If a function \( f(x) = 3x^2 - 2x + 7 \) represents the cost (in dollars) of producing \( x \) units of a product, evaluate \( f(5) \) to find the cost of producing 5 units. Let's think step by step and output the final answer within \boxed{}.
user