Consider the graph shown.

A graph is shown in the xy-plane. The values on the x-axis range from negative 8 to 8 in increments of 2 and the values on the y-axis range from negative 8 to 8 in increments of 2. A line is shown which passes through the points (0, 2), and (4, 4).

What is the slope of the graph?
Write an equation for the line.

please help i'm a little confused

3 answers

Use the slope formula, slope = (y2 - y1)/(x2 - x1)
as with any line, the slope is the change in y divided by the change in x. So, that would be

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

Now, using the point-slope form of the line, with either point,
y-2 = 1/2 (x-0)
or
y-4 = 1/2 (x-4)
or in either case, this resolves to y = 1/2 x + 2
Thank you! :3