Answer:
Gradient of A:

Gradient of B :

Explanation:
Gradient of a line is the slope of the line
Slope = rise/run
rise = difference in y values between any two points on the line
run = difference in x values between the corresponding points
Line A
Take points (0, 1) and (3,7)
rise = 7 - 1 = 6
run = 3 - 0 = 3
slope = gradient = 6/3 = 2
Gradient of a line which goes diagonally up from left to right is positive
Line B
Take points (0,5) and (5, 0)
rise = 0 - 5 = - 5
run = 5 - 0 = 5
slope = gradient = -5/5 = - 1
Gradient of a line which goes diagonally down from left to right is negative