The slope of a straight line is given by the following expression:
By looking at the graph we have two locate two pairs of coordinates: Coordinate 1 (2,0) Coordinate 2 (-4,0).
Now we replace on the slope formula, having:
Pair of coordinates, coordinate 1 (2,0) coordinate 2 (3,2)