To find teh equation of the line we need the slope of that line and the co ordinates of the one point through which it is passing
here we are given only two points through which it is passing
this can help us to find slope .
We start with finding the slope of the line passing through x1 y1 and x2 y2
that is m= ( y2- y1) divide by ( x2-x1)
here we h ave : x1= -2 and y1 = 7 , x2= 3 and y2 = 12
slope of the line would be : ( 12- 7 ) divide by ( 3 - -2 )
slope of the line = 5 / 5 = 1
Equation of the line having slope m and passing through x1 y1 is :
we have found ,m= 1
Y= m( X- x1) + y1
Y= 1 ( X- -2 ) + 7
Y= X+2 + 7
Y= x+ 9 that is the equation of the required line
Answer : Y = x+9