You can put this solution on YOUR website! Slope of a line is defined as the tangent of the angle the line makes with X axis in the positive (anticlockwise) direction.
if the line equation is given as ax + by + c = 0 , then the slope is given by
the formula m = slope = -a/b