What is the formula for the slope of a line segment whose endpoints are (x1,y1) and (x2,y2)?
A. m=y1−y2x2−x1
B. m=y2−y1x2−x1
C. m=x2−x1y2−y1
D. m=y2−x2y1−x1