Since the x-intercept is -2, the point (-2,0) lies on the graph of the line. Since the y-intercept is 1, the point (0,1) also lies on the line.
Therefore, the slope, m, is equal to (1-0) / (0-(-2)) = 1/2.
Equation of line: y = mx+b, where b is the y-intercept.
So, y = (1/2)x + 1