Answer:
[tex]y=3x+6[/tex]
Step-by-step explanation:
Equation of the line
The equation of the line in slope-intercept form is:
[tex]y=mx+b[/tex]
Being m the slope and b the y-intercept.
We are given two points for the required line: The x-intercept is -2, thus the point is (-2,0), and the y-intercept b=6 represents the point (0,6).
Since the value of b is 6, we use the first point to find the slope:
[tex]0=m(-2)+6[/tex]
Solving:
m=3
The correct equation of the line is:
[tex]\boxed{y=3x+6}[/tex]