Answer:
[tex]y=\frac{1}{2}x+3[/tex]
Step-by-step explanation:
Let the equation of the line be: [tex]y=mx+b[/tex]
where m is the slope and b is the y-intercept.
The given straight line has a y-intercept at [tex]b=3[/tex]
The equation is of the form [tex]y=mx+3[/tex]
The line passes through the point (2,4).
Let us substitute x=2, and y=4 to find the value of m.
[tex]4=m(2)+3[/tex]
[tex]4=2m+3\\4-3=2m\\1=2m\\m=\frac{1}{2}[/tex]
The slope is [tex]m=\frac{1}{2}[/tex]
Hence the equation of the line is [tex]y=\frac{1}{2}x+3[/tex]