Use the equation for the slope:

The two points are equal to (x1, y1) and (x2, y2).
So choose one of your points to be (x1, y1). Let's choose (4, -2). That means x1 = 4 and y1 = -2.
The other point would then be (x2, y2). So x2 = 24 and y2 = -17.
Now put these values in to the equation:

The slope is -3/4.