Question 245899
A sketch of the line would help a lot!
.
Start of Line: __________ Anil __________ Darsh ___________:Front of line
.
The number of people from the start of the line to Darsh is said to be:  x
.
The number of people from Anil to Darsh is given:  y
.
The number of people from Anil to the front of the line is given as: z
.
So we can separate the line into 3 segments:
.
Start of line to Anil = x - y
.
From Anil to Darsh = y
.
From Darsh to Front of the line = z - y 
.
So we add the three segments and get:  x-y + y + z-y = x + z - y
.
We can check with a concrete example.  Assume 10 people in the line behind Anil, 5 between Anil and Darsh, and 5 from Darsh to the front of the line.  So there are 22 people in the line:  10+5+5+Anil+Darsh.
.
||||||||| Anil ||||| Darsh |||||, where each vertical bar represents a person.
.
x = 10 + Anil + 5 = 16
.
From Anil to the front of the line is z:
.
z = 5 + Darsh + 5 = 11
.
We know that y = 5 because that is the number of people we put between Anil and Darsh in our setup.
.
So, we have  16 + 11 - 5 = 22, which is the number of people we know are in the line:  x + z - y.