From the f(x) plot below
the equation of f(x) can be evaluated by picking any two points on the plot.
The selected points are (0, 4) and (6, 0).
Thus, the equation of the line passing through these points is evaluated as
In this case,
Thus,
Thus, the f(x) function is expressed as
Given that
When x=3,
Thus, when x = 3, the values of f(x) and g(x) are 2 and -1 respectively.