The slope is 2 because the formula for finding the slope is change in y over change in x. So, u take 6 from A and -6 from B if u subtract them u get 12. U get 12 because minus of minus gives u plus so if u do the same thing for the next X as well u will end up with -6. So if u divide both , u end up with positive 2.
Good luck with problem