to find a slope we only need two points of the line and this equation
where (x2,y2) is a right point from (x1,y1)
My two points will be (2,2) and (6,10)
we can notice (6,10) is right from (2,2) so (6,10) is (x2,y2)
now just replace to find the slope(m)