.Which of the sets of equations represent the two lines graphed?A) y = x + 2 and y = x - 4B)y = x + 2 and y = -x - 4C)y = -x + 2 and y - x - 4D)y = x - 2 and y = -x - 4

Option B is the correct answer.
Take two points on each of the two lines.
Line A: (-2,0) and (0,2)
Line B: (-4,0) and (0,-4)
slope of Line A =
[tex]\frac{y_2-y_1}{x_2-x_1}=\frac{2-0}{0--2}=\frac{2}{2}=1[/tex]The slope of Line B =
[tex]\frac{y_2-y_1}{x_2-x_1}=\frac{-4-0}{0--4}=\frac{-4}{4}=-1[/tex]The equations of the lines are;
Equation of Line A ;
[tex]\begin{gathered} y-y_1=slope(x-x_1) \\ y-0=1(x--2) \\ y=x+2 \end{gathered}[/tex]Equation of Line B;
[tex]\begin{gathered} y-y_1=slope(x-x_1) \\ y-0=-1(x--4) \\ y=-x-4 \end{gathered}[/tex]