I am very confused on this problem
y=mx+b is "Slope-Intercept Form" where "y" is the equation of the line, "m" is the slope of the line, and "b" is the y-intercept.
To find the y-intercept (or "b"), you should look for the point where the line crosses the y-axis. On this graph, the line crosses the y-axis when y=0, so b=0.
To find the slope (or "m"), you can use the trick "rise/run". Basically, find 2 points on the line that you know. You already have (-2,-1) and (2,1). To get from the lower point to the higher point, you must go UP 2 units. To get from there to the point you must go RIGHT 4 units. So you would have a slope of 2/4 which reduces to 1/2.
Therefore, you equation for the line would be y=1/2x
when you are given 2 points first find $\displaystyle m$ the slope
$\displaystyle m = \frac{y_2-y_1}{x_2-x_1}$
then use point slope form
$\displaystyle
y-y_0 = m\left(x-x_0\right)
$
after simplifying then you will have the slope-intercept form
$\displaystyle y = mx+b$
Given: (-2,-1),(2,1)
$\displaystyle m = \frac{1-(-1)}{2-(-2)} = \frac{1}{2}$
$\displaystyle y-1 = \frac{1}{2}\left(x-2\right)$
$\displaystyle y=\frac{1}{2}x$
Yet another way to do this: Any non-vertical line can be written as y= ax+ b. Since the line passes through (x, y)= (2, 1) we must have 1= a(2)+ b. Since the line passes through (-2, -1), we must have -1= a(-2)+ b. Solve the two equations 2a+ b= 1 and -2a+ b= -1 for a and b.