What is the equation of the line

Answer: y = 1/2x + 2
Step-by-step explanation:
The equation of a straight line can be represented in the slope-intercept form, y = mx + c
Where c = intercept
Slope, m =change in value of y on the vertical axis / change in value of x on the horizontal axis represent
change in the value of y = y2 - y1
Change in value of x = x2 -x1
y2 = final value of y
y 1 = initial value of y
x2 = final value of x
x1 = initial value of x
From the graph,
y2 = 4
y1 = 2
x2 = 4
x1 = 0
Slope,m = (4 - 2)/(4 - 0) = 2/4 = 1/2
To determine the y intercept, we would substitute x = 4, y = 4 and
m = 1/2 into y = mx + c. It becomes
4 = 1/2 × 4 + c
4 = 2 + c
c = 4 - 2 = 2
The equation becomes
y = x/2 + 2