example : find the slope of a line that passes through each pair of points