For the linear function g, g(0)=2 and g(1)=4. Which equation defines g?
g(x)=2x+2
g(x)=2x+4
g(x)=4x+2
g(x)=x+2