Respuesta :

let first calculate the slope

[tex]m=\frac{2-(-2)}{4-0}=\frac{4}{4}=1[/tex]

having the slope we can find the equation

[tex]\begin{gathered} y-(-2)=1(x-0)=x \\ y+2=x \\ y=x-2 \end{gathered}[/tex]

so the equation is

[tex]y=x-2[/tex]