Answer:
Therefore the equation of the required line is y =
x + 2 or 2y + x = 4.
Step-by-step explanation:
i) when x = -2 then y = 3 so the line from x = -2 to x = 2 has the point (-2, 3)
ii)when x = 2 then y = 1 so the line from x = -2 to x = 2 has the point (2, 1)
iii) if two points in a line are given then slope of equation passing through the lines is given by
slope m =
=
=
= 
So from the general equation of a line y = mx + c
we get y =
x + c and substituting for x and y with (-2, 3) respectively we get
3 = 1 + c. Therefore c = 2.
Therefore the equation of the required line is y =
x + 2 or 2y + x = 4.