Given data:
The first coordinate on the graph is (2, 2).
The second coordinate on the graph is (6,10).
The slope of the given graph is,

The equation of the line is,
y-2=2(x-2)
y-2=2x-4
y=2x-2
Thus, the slope of the line is 2, and equation of the line is y=2x-2.