Write an equation of the line in slope-intercept form.

Answer:
[tex]\displaystyle y=\frac{1}{3}x+\frac{4}{3}[/tex]
Step-by-step explanation:
Equation of a line
The slope-intercept form of a line is:
y=mx+b
Where m is the slope and b is the y-intercept.
Suppose we know the line passes through points A(x1,y1) and B(x2,y2). The slope can be calculated as follows:
[tex]\displaystyle m=\frac{y_2-y_1}{x_2-x_1}[/tex]
Two points are given: (-4,0) (2,2). Calculate the slope:
[tex]\displaystyle m=\frac{2-0}{2+4}=\frac{2}{6}=\frac{1}{3}[/tex]
We'll use the point-slope form of the line:
y-k=m(x-h)
Take the point (2,2):
[tex]\displaystyle y-2=\frac{1}{3}(x-2)[/tex]
Operating:
[tex]\displaystyle y-2=\frac{1}{3}x-\frac{2}{3}[/tex]
Adding 2:
[tex]\displaystyle y=\frac{1}{3}x-\frac{2}{3}+2[/tex]
Operating, we get the slope-intercept form:
[tex]\boxed{\displaystyle y=\frac{1}{3}x+\frac{4}{3}}[/tex]