We see from the graph that f(x) and g(x) intersect at x = 2. Therefore, the point at x = 2 would be equivalent in both graphs/be a solution to both equations.
Therefore, f(2) must equal g(2), as they intersect each other at that point and have the same value of 0.