The end points of line segments are
and
.
Slope of a line :
.

Slope of the line segment with the end points
and
is
.
Line equation :
.
Line equation for the point
with the slope
is

Substitute
in
.

Let
.
Substitute
in above equation.
.
Thus, the parametric equations are
and
.
The parametric equations are
and
.