If there are no points on the graph but you have the line passing through-2 on y axis and 1 on the x axis how do you write an equation of this line in slope intercept form

To write the equation of the line passing through the points (-2,0) and (0,1) in slope-intercept form, we first need to find the slope of the line.

The slope (m) of a line passing through the points (x1, y1) and (x2, y2) is given by the formula:

m = (y2 - y1) / (x2 - x1)

Plugging the given points (-2,0) and (0,1) into the formula:

m = (1 - 0) / (0 - (-2))
m = 1 / 2

Now that we have the slope of the line, we can use the slope-intercept form of a linear equation, y = mx + b, where m is the slope and b is the y-intercept. We can plug in the slope value we found (m = 1/2) and one of the given points (-2,0) to solve for the y-intercept (b).

0 = (1/2)(-2) + b
0 = -1 + b
b = 1

Now that we have found the y-intercept (b = 1), we can write the equation of the line in slope-intercept form:

y = (1/2)x + 1