Question: how to find the slope of k?
Answer: Given two point, A(xa,ya) and B(xb,yb) the slope of the line that passes from them is: m=yb−yaxb−xa .