What is the equation of the line with an x-intercept of -2 and a y-intercept of 1?

A.y=-1/2x +1
B. y=1/2x +1
C. y=2x + 1