How to find distance between two points, midpoints of a line ,slope of a line and the equation of a line .