We can calculate the slope of a line segment by using the formula:
Where (x1,y1) and (x2,y2) are two points of the line.
In this case the side DF goes from the point D(-2,-2) to the point F(1,7), then its slope is:
For the side, CD, it goes from D(-2,-2) to C(0,4), then its slope is: