Answer:
find the coordinates and then do subtract the first one, for example for line segment AB, do (1,6) and (5,1)
(1,6) (5,1)
1-6 = -5
5-1 = 4
answer is -5/4 and that is the slope of the line.
Continue with the rest please like how i did the example