In the xy-plane, the graph of a linear function g passes through the points (0,−2) and (4,6). Which equation defines g, where y=g(x)?
y=2x+2
y=−2x−2
y=2x−2
y=−2x+2