Respuesta :

slope = (Y2-Y1) / (X2-X1)
hope that's helpful