document.write( "Question 245899: In a movie theatre line, x people are behind Darsh, who is y places in front of Anil. If there are z people in front of Anil, how many people are in the line? \n" ); document.write( "
Algebra.Com's Answer #179680 by oberobic(2304)\"\" \"About 
You can put this solution on YOUR website!
A sketch of the line would help a lot!
\n" ); document.write( ".
\n" ); document.write( "Start of Line: __________ Anil __________ Darsh ___________:Front of line
\n" ); document.write( ".
\n" ); document.write( "The number of people from the start of the line to Darsh is said to be: x
\n" ); document.write( ".
\n" ); document.write( "The number of people from Anil to Darsh is given: y
\n" ); document.write( ".
\n" ); document.write( "The number of people from Anil to the front of the line is given as: z
\n" ); document.write( ".
\n" ); document.write( "So we can separate the line into 3 segments:
\n" ); document.write( ".
\n" ); document.write( "Start of line to Anil = x - y
\n" ); document.write( ".
\n" ); document.write( "From Anil to Darsh = y
\n" ); document.write( ".
\n" ); document.write( "From Darsh to Front of the line = z - y
\n" ); document.write( ".
\n" ); document.write( "So we add the three segments and get: x-y + y + z-y = x + z - y
\n" ); document.write( ".
\n" ); document.write( "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.
\n" ); document.write( ".
\n" ); document.write( "||||||||| Anil ||||| Darsh |||||, where each vertical bar represents a person.
\n" ); document.write( ".
\n" ); document.write( "x = 10 + Anil + 5 = 16
\n" ); document.write( ".
\n" ); document.write( "From Anil to the front of the line is z:
\n" ); document.write( ".
\n" ); document.write( "z = 5 + Darsh + 5 = 11
\n" ); document.write( ".
\n" ); document.write( "We know that y = 5 because that is the number of people we put between Anil and Darsh in our setup.
\n" ); document.write( ".
\n" ); document.write( "So, we have 16 + 11 - 5 = 22, which is the number of people we know are in the line: x + z - y.
\n" ); document.write( "
\n" );