Algebra, Equations & Number Patterns

Answer & solution
Official answer: B
Fix any y0. The premise gives f(x)=g(y0) for every x, so f is constant. Similarly fixing x0 makes g constant, and their constants are equal. They need not be zero. Hence B.
Teaching detail. The key phrase is “for all x and y”, not merely f(x)=g(x) for a common argument. Taking y=0 forces every value of f to equal the single number g(0). Taking x=0 similarly forces every value of g to equal f(0), and those two numbers agree. The common value can be 7, for example, refuting the necessity of zero and of the equality of sum and difference. No continuity or differentiability assumption is needed.