The slope of a segment can be calculated by dividing the rise (change in the vertical direction) and the run (change in the horizontal direction).
Looking at the segment YZ, the horizontal distance is 3 units and the vertical distance is 6 units.
Therefore the slope is:
The slope of YZ is equal to 2.