First, we observe that the graph of y=f(x) consists of line segments, connecting the points (-4, 4), (-1,0), (0,2), and (4,-4).
So to plot the graph of y=g(x) we can apply the transformation \((a,b) \to \left( 3a - 1, \frac{b}{2} \right)\) to each of these points, and then connect them. This gives us the points (-13,2), (-4,0), (-1,1), and (11,-2).
Hope this helps!
I got it working.