Answer :
The equation of the line passing through the point so that segment of the line i.e. [tex]y+2x=4[/tex]
The equation of the line be [tex]y=mx+c[/tex]
Now the line intersects at the x-axis [tex](a,0)[/tex] and the point at which the y-axis intersect [tex](0,b)[/tex]
Plug in the value [tex](a,0)\\[/tex]
[tex]ma+c=0\\a=\frac{-c}{m}[/tex]
and now plug in the value [tex](b,0)[/tex]
[tex]b=c+0\\b=c[/tex]
now [tex](1,2)[/tex] is the midpoint of [tex](a,0)[/tex] and [tex](0,b)\\[/tex]
[tex]2=\frac{0+b}{2\\}\\ b=c\\\frac{c}{2} =2\\c=4[/tex]
and
[tex]1=\frac{a+0}{2}\\1=\frac{-c}{2m} \\m=-2[/tex]
plug in the value of m and c
[tex]y+2x=4[/tex] is the required equation
Learn more about equations from
https://brainly.com/question/29657983
#SPJ4