This is a good question. Definitely more towards the 700 range than the 600 range of the spectrum.
Rate * Time = Distance
Rate Allen =54
Rate Bob =72
They will be working together to cover the total distance from X to Y, so their combined rate, 54+72=126, will be used.
The key is figuring out how times Allen and Bob will collectively traverse the distance from X to Y.
It helps to conceptualize two people moving along this same pattern without factoring in their respective rates just yet.
X----------N----------Y
If the XY distance is drawn as above, the total distance can be represented as (X+N)+(N+Y). If both Allen and Bob meet at point N each time, during the first meeting one will have traveled X+N and the other will have traveled N+Y, for a total distance of (X+N) + (N+Y), or 1x the total distance.
As they pass the other, one will travel N+Y for the first time as the other travels X+N for the first time. Thus, they collectively make another combined trip of the full distance X to Y. They each turn around and cover the same ground they just traveled, for a third combined trip of the total distance. Thus, combined they total distance of 3x the distance from X to Y.
Set up a standard R*T=D equation with their combined rate and let the distance =3D to figure out the amount of time it takes for the guys to meet twice. Set everything in terms of D as we're trying to find out distance.
126* (3D/126)=3D. [T=D/R]
126*(D/42)=3D; Thus, the time it takes to meet twice can be represented as D/42.
Now use this representation of time and set the equations equal to each other with info given in the question.
72D/42=(54D/42)+36
18D/42=36
D=36(42)/18
D=2*42=84
Answer D