Write a linear function that relates y to x for the graph.a)y=4x-2b)y=2x+2c)y=2x-2d)-2x-2

To find the linear equation that represents that line, we can calculate the slope first, the slope is given by the expression:
[tex]\begin{gathered} m=\frac{y_2-y_1}{x_2-x_1} \\ m=\frac{2-(-2)}{2-0}=\frac{4}{2}=\frac{1}{2} \end{gathered}[/tex]Now, since a slope-intercept form of a line is:
y=mx+b
We can use the slope, and one of the points to find b:
[tex]\begin{gathered} -2=\frac{1}{2}(0)+b \\ -2=b \end{gathered}[/tex]Then, the linear equation is:
[tex]y=\frac{1}{2}x-2[/tex]