Explanation:
usually, when asked about the equation for a line, we give it in slope-intercept form :
y = ax + b
"a" is the slope, "b" is the y-intercept (the y-value when x = 0).
the graph tells us the y-intercept right away : 6
the scope is the ratio
y coordinate difference / x coordinate difference
when going from one point on the line to another.
I recommend to always look for points with integer coordinates (the line goes through a vertex of a grid square).
the y-intercept gives us the first point
(0, 6)
and then I see easily at the other end of the visible line :
(4, 10)
between these 2 points
x changes by + 4 (from 0 to 4).
y charges by + 4 (from 6 to 10).
the slope is then +4/+4 = 1
so, our equation is
y = x + 6