The graph of ƒ(x) has an x-intercept at (2,0). The graph of g(x) has an x-intercept at (4,0), which is located +2 x units away from ƒ(x). This indicates the x-value being subtracted by an amount, as it takes g(x) longer to reach the same y-value as ƒ(x).
The answer is g(x) = ƒ(x - 2).