The equation of a line can be written in the slope-intercept form given to be:
[tex]y=mx+b[/tex]where m is the slope of the line and b is the intercept on the y-axis.
The equation is given to be:
[tex]2x+y=4[/tex]To write the equation in the slope-intercept form, we can subtract 2x from both sides:
[tex]\begin{gathered} 2x-2x+y=-2x+4 \\ y=-2x+4 \end{gathered}[/tex]Therefore, the slope of the line is:
[tex]m=-2[/tex]and the y-intercept is:
[tex]b=4[/tex]