The slope-intercept form of a line is defined as
[tex]\begin{gathered} y=mx+b \\ \text{where} \\ m\text{ is the slope} \\ b\text{ is the y-intercept} \end{gathered}[/tex]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
[tex]\begin{gathered} y=mx+b \\ m=2 \\ x=-2 \\ y=2 \\ \\ \text{Substitute} \\ y=mx+b \\ 2=(2)(-2)+b \\ 2=-4+b \\ 2+4=b \\ b=6 \end{gathered}[/tex]Now that we have the y-intercept form, put it all together along with the slope, and the equation of the line is
[tex]y=2x+6[/tex]