⇒The first step is to find the slope/gradient between the points using the given formula below:
![m=(y_(2) -y_(1) )/(x_(2)-x_(1) )\\ m=(-1-5)/(-1-2) \\m=(-6)/(-3) \\m=2](https://img.qammunity.org/2023/formulas/mathematics/high-school/oulh2q4ivodeq88hq2lfzzr8dka5wu13bf.png)
⇒Now that I have found the gradient keep in mind that the general equation of finding the equation of a straight line is y=mx+c
⇒To find the value of c I will use the point A Keep in mind you can use any point of your choice you will still finds the correct value of the same as any way
![5=2(2)+c\\5=4+c\\5-4=c\\c=1](https://img.qammunity.org/2023/formulas/mathematics/high-school/c4ug2qaecok2o1ieqhr4sfqatjco8riu1i.png)
⇒This just simply means that the equation of the line of the points A and B is:
![y=2x+1](https://img.qammunity.org/2023/formulas/mathematics/high-school/58me4lbj08ymnzvhsr3hdd7pgiyxglpj44.png)
GOODLUCK!!