\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Consider a function \(y=f(x)\). Find the equation of the resulting function, \(g(x)\), if the graph of \(f\) is transformed by the following sequence:
  1. A horizontal translation of 5 units to the left.
  2. A horizontal compression by a factor of \(\frac{1}{2}\).

Capture an image of your work. AI teacher feedback takes approximately 10 seconds.