The table below shows some values for the linear function g. Which of the following defines g(x)?
g(x)=2x+7
g(x)=4x+7
g(x)=2x
g(x)=7x+2