answer gradient of line

Answer:
the gradient of line A is 2 and the gradient of line B is -1
Step-by-step explanation:
I don´t know if this is correct for sure but I double checked and got the same answer each time. Tell me if it is wrong
hope this helps :)