The slope-intercept form of a line is defined as
Given a slope m = 2, and a point (x,y) of (-2,2) substitute the following values to the definition of a slope intercept form, and we get
Now that we have the y-intercept form, put it all together along with the slope, and the equation of the line is