For first stone:
Initial velocity, uI = 15 m/s
Acceleration, a = –g = – 10 m/s2
Using the relation,

When this stone hits the ground, x1 = 0

Since the stone was projected at time t = 0, the negative sign before time is meaningless. = 8 s
For second stone:
Initial velocity, uII = 30 m/s
Acceleration, a = –g
= – 10 m/s2
Using the relation,

At the moment when this stone hits the ground; x2 = 0

Here again, the negative sign is meaningless. t = 10 s
Subtracting equations (i) and (ii), we get

Equation (iii) represents the linear path of both stones. Due to this linear relation between (x2 – x1) and t, the path remains a straight line till 8 s.
Maximum separation between the two stones is at t = 8 s.
(x2 – x1)max = 15× 8 = 120 m
This is in accordance with the given graph.
After 8 s, only second stone is in motion whose variation with time is given by the quadratic equation: x2 – x1 = 200 + 30t – 5t2
Hence, the equation of linear and curved path is given by
