Solution: let the distance between A and B be = \(x\) km.
Train from A starts at 6 a.m. and reaches B at 2 p.m, which means this train takes 8 hours to travel \(x\) km.
Hence the speed of train from A = \(\frac{x}{8} km/hr. \)
Train from B starts at 8 a.m. and reaches A at 2 p.m, which means this train takes 6 hours to travel \(x\) km.
Hence the speed of train from B = \(\frac{x}{6} km/hr. \)
In the time of 6 am to 8am train from A travels = \(\frac{x}{8}*2 =\frac{x}{4} km\).
So, the distance between the 2 trains at 8 am = \(x-\frac{x}{4}=\frac{3x}{4}km\)
We know a formula that if 2 bodies are moving towards each other at speeds \(S_1\) and \(S_2\) and distance between them is \(D\),
then they will meet each other after \( \frac{D}{S_1+S_2}\) hours.To get the answer let us find the sum of the speeds of 2 trains = \(\frac{x}{8}+\frac{x}{6 }= \frac{3x+4x}{24} = \frac{7x}{24} km/hr.\)
So, after 8am the 2 trains will meet in = \(\frac{3x}{4}/\frac{7x}{24} = \frac{18}{7} hour. \)
Hence the right answer is
Option D.