By definition, let m be the slope a line, then m can be calculated by the following equation:
[tex]m=\frac{y_2-y_1}{x_2-x_1}^{}[/tex]Given that (x1, y1) and (x2, y2) are known points of the line. By reflecting all the points of the line across the line y = x