We can see the slope of f is -3, because for every one unit to the right, the graph goes down three units. We can check this from two points, say (0,2) and (1,-1).
m = (-1 - 2)/(1 - 0) = -3
g is in slope-intercept form so we read off the slope of g as n=-5
Of course -3 > -5
Answer: B, slope of f is greater