With most limit problems, assume everything is well behaved and the limit as x --> is what you get if you plug in x = 4. Also, for continuous functions, limits add, subtract, multiply, and divide (when limits have finite values for the last two cases. Conditions that lead to 0*inf and 1/0 or 0/0 or inf/inf are when the limiting process is important) Here:
3f(4) +f(4)g(4) = 25 and solve for f(4).