Answer:
Line A = 3
Line B = - 1
Explanation:
To find the gradient, you need two points on a line right. The formula for gradient is

So on line A, try to find 2 points (coordinates)
You have (-2,1) , (-1,4) , (0,7)
Choose any two
Let's say (-1,4) and (0,7)
Gradient =

Gradient of line A is 3
For line B, let's take (1,7) and (2,6)
Gradient =

Gradient of line B = - 1