The formula to calculate the equation of a line between two points is

Let us pick any two points for both the two lines and find the equation of the lines.
Line 1

Therefore,

Hence, the equation of the line is

Line 2

Therefore,

Hence, the equation of the line is,

Therefore, the system of equations are
