The two equations are both for straight lines.
#g(x)# is already in 'slope-intercept form':
#y = mx + c#
Where #m# is the slope (gradient) - in this case #2# - and #c# is the y--intercept - in this case #6#.
#f(x)# is a little more challenging, but we can use any two of the points given to find the gradient and then use that to find the y-intercept:
#m=(f(x)_2-f(x)_1)/(x_2-x_1) = (0-(-12))/(1-(-1))=12/2=6#
The gradient is #6#, clearly much larger than the gradient of #g(x)# which is #2#.
To find the intercept, we can simply plug in any point we like: let's use the middle one since we haven't used it yet:
#g(x) = mx+c#
#(-6) =6(0)+c#
Very simply, this means #c=-6#.
Over all, then, #g(x) = 6x-6#. This y-intercept of #-6# is much smaller than the y-intercept of #f(x)#, which is #+6#.