Trigonometry is the branch of mathematics concerned with specific functions of angles and their application to calculations. There are six functions of an angle commonly used in trigonometry which I believe is the problem you are on.
I personally use y2-y1 over x2-x1 because it's simple. Plot two y values and two x values. The first ones you plotted are x1 and y1, the others are x2 y2. Now subtract y2-y1 and x2-x1. Afterwards, divide the y value by the x value, that will give you slope.