The correct option is B y=3x−7
Concept Involved:–––––––––––––––––––––
If a line passes through a point (a,b) and has slope 'm', then the equation of the line would be given by Point slope form as:
(y−b)=m(x−a)
If we are given two points (x1,y1) and (x2,y2), then
'm' can be written as:
m=y2−y1x2−x1
Equation of the line can be written as when two points are given:
y−y1=y2−y1x2−x1(x−x1)
Method:––––––––––
First we need to find the slope of the line that passes through the points A(2,-1) and B(4,5).
Slope =m=5−(−1)4−2=62=3
Putting these values in Point slope form of the line taking point as A(2,-1).
y−(−1)=3×(x−2)
y+1=3x−6
y=3x−7
Putting the values in Point slope form of the line taking point as B(4,5).
y−5=3×(x−4)
y−5=3x−12
y=3x−7