P(x, 4) and Q( 10, 8) are two points joined by a straight line in…