Allie and Roman are trying to graph the blue line shown on the left. Only one of them has a correct answer. Allie entered this equation: y=2x-8Roman entered this equation: y=8-2x Who is correct? Allie or Roman

Step 1
State the equation of a line in slope-intercept form
[tex]\begin{gathered} y\text{ = mx + b} \\ or \\ y=\text{ b+mx} \end{gathered}[/tex]The formula for the slope m is given as
[tex]m\text{ =}\frac{y_2-y_1}{x_2-x_1}[/tex]where
[tex]\begin{gathered} y_2=4 \\ y_1=0 \\ x_2=2 \\ x_1=4 \end{gathered}[/tex]Step 2
Find the slope
[tex]m=\frac{4-0}{2-4}=\frac{4}{-2}=-2[/tex]Step 3
Find the y-intercept, b
[tex]\begin{gathered} \text{The y-intercept is found from the graph as 8} \\ \text{Hence, b = 8} \end{gathered}[/tex]Step 4
Write out the equation
[tex]\begin{gathered} y=-2x+8 \\ or \\ y=8-2x \end{gathered}[/tex]Therefore, Roman is correct