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 (m) of a line from two points (x1, y1) and (x2, y2) is:

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