The function f(x) goes through the point (-2,2) and (4,2)
Let's find the slope: (2-2) / (4+2) = 0/6 = 0.
We can assume that the function is y = 2, which means the y-intercept of f(x) is 2.
The function of g(x) passes through (3,1) and (6,2)
The slope of g(x) is 1/3
Plugging in (3,1) and m=3 in the function the function y=mx + b:
1 = (1/3)(3) + b
1 = (1) + b
b = 0
The y-intercept of g(x) is 0.