Step-by-step explanation:
f(x) goes through the point (0, 1).
g(x) goes through (2, 1) for the same y value.
that means g(x) is f(x) translated 2 units to the right.
but we could also look at the same x value (0).
then g(x) goes through (0, -5).
and that means g(x) is f(x) translated 6 units down.
since it is a line function, shifting it left/right or up/down makes no difference to the shape or position of the new curve itself.
as it looks like you don't have 6 in the drop-down menu, then 2 units (to the right) is the desired correct result.
that means g(x) = f(x-2) = 3(x-2) + 1 = 3x - 6 + 1 = 3x - 5
and that is what the graph is showing us.