we can mark points on the graph shown , check the image I have shared with this for the points .
Formula for slope =

So for Line A points are (1,3) and (0,-1)
So using t he formula slope is =

slope of line A =4
For Line B the points are (0,4) and (3,-5)
So using t he formula slope is =

slope of line B = -3