Answer:
![y=(1)/(2)x+3](https://img.qammunity.org/2021/formulas/mathematics/middle-school/w42u2ynj1vwj395idbtnu5cauvks6bsl0b.png)
Explanation:
Let the equation of the line be:
![y=mx+b](https://img.qammunity.org/2021/formulas/mathematics/middle-school/yj5waqmoy4i54laybzhhshd88hyo5w5rj5.png)
where m is the slope and b is the y-intercept.
The given straight line has a y-intercept at
![b=3](https://img.qammunity.org/2021/formulas/mathematics/college/1a6koqmaiqbnujqbp8k9ck377l3defol4z.png)
The equation is of the form
![y=mx+3](https://img.qammunity.org/2021/formulas/mathematics/middle-school/6c7a29x9462khd3ffrkuvzeu7bn2zv0rr9.png)
The line passes through the point (2,4).
Let us substitute x=2, and y=4 to find the value of m.
![4=m(2)+3](https://img.qammunity.org/2021/formulas/mathematics/middle-school/n119rkhh6u5leh48x1apepeq3faxhmuw66.png)
![4=2m+3\\4-3=2m\\1=2m\\m=(1)/(2)](https://img.qammunity.org/2021/formulas/mathematics/middle-school/h2cr0h6xx2fhn91sblok4zm50ieqg0grcv.png)
The slope is
![m=(1)/(2)](https://img.qammunity.org/2021/formulas/mathematics/college/ucw89inmlv3xv98exbt8pzfpuwz4d9umwf.png)
Hence the equation of the line is
![y=(1)/(2)x+3](https://img.qammunity.org/2021/formulas/mathematics/middle-school/w42u2ynj1vwj395idbtnu5cauvks6bsl0b.png)