Next time please present your data in tabular form:
x g(x)
2 5
4 7
6 9
From this table it is immediately evident that if x increases by 2, y increases by 2 also. Thus, the slope of the line is m = rise / run = 2 / 2 = 1, for function g(x). Function f(x) has slope 4, which is greater.