Given:
A line passes through the points (2,-1) and (1,-5).
To find:
The equation of the line.
Solution:
If a line passes through the two points, then the equation of the line is
![y-y_1=(y_2-y_1)/(x_2-x_1)(x-x_1)](https://img.qammunity.org/2022/formulas/mathematics/high-school/wkwv82bw6qlga765myohf3n6p3g9tbbqs4.png)
The line passes through the points (2,-1) and (1,-5). So, the equation of the line is
![y-(-1)=(-5-(-1))/(1-2)(x-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/u3juogz7k2yfkl7583feaeaa3j8zrejs33.png)
![y+1=(-5+1)/(-1)(x-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/bo8bd3bx3xfirnncbksi7abo42m05cs74d.png)
![y+1=(-4)/(-1)(x-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/808gdudaiaulbvzi29fdh5olqj4qk5u1aj.png)
![y+1=4(x-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/7vv70ftkzjq43fcy0kcrtinpbuclfez5lg.png)
Using distributive property, we get
![y+1=4(x)+4(-2)](https://img.qammunity.org/2022/formulas/mathematics/high-school/suekx7q9re1c5qfmlwhyjgkqi0c83p7w24.png)
![y+1=4x-8](https://img.qammunity.org/2022/formulas/mathematics/high-school/qb28pgr714zd9ptd3e6ooesnxzfo7hdrhk.png)
Subtract 1 from both sides.
![y+1-1=4x-8-1](https://img.qammunity.org/2022/formulas/mathematics/high-school/2uh2er2dncgnhf5nzhk3bcb164g4hz4jhj.png)
![y=4x-9](https://img.qammunity.org/2022/formulas/mathematics/high-school/ozqdsmztewypiv472wmuchdra5xibsizy9.png)
Therefore, the correct option is B.