Use the slope/gradient formula below:

This formula is for when we want to find the gradient when we have two given points. (We also call it Rise Over Run or changes of y over the changes of x.)
We are given two points which are (3,7) and (5,11). Substitute these points in the equation. (the ordered pairs are in (x,y) and not (y,x))

Hence, the gradient of AB is 2.
Answer