gradient is (y-y1)= m(x-x1)
m is the gradient and this can be rearranged as y-y1/x-x1 so for the first one it would be 7-2/10-1 which is equal to 5/9 ( these values come from the coordinate given. You can repeat this same method with all the other questions. Hope this helps :).