Which formula can be used to find the slope of a line from two points (x1,y1) and (x2,y2)

The formula to find the slope of a line from two points (x1, y1) and (x2, y2) is:

slope = (y2 - y1) / (x2 - x1)