The point lies on the straight line and the point lies on the straight line then the equation of the line is
It is given that points and lie on the lines and respectively.
and
Thus, the coordinates of and are and respectively. So, the equation of line is
or,