
Let the speed of Train 1 from point A to B be \(s\).
Then the speed of Train 2 from A to B is \(2s\).
Time taken by Train 1 to travel from A to C:
\[ \frac{D}{s} + \frac{3D}{2s} = \frac{5D}{2s} \]
Time taken by Train 2 to travel from A to C:
\[ \frac{D}{2s} + \frac{3D}{s} = \frac{7D}{2s} \]
The ratio of time taken (Train 1 : Train 2) is:
\[ \frac{5D}{2s} : \frac{7D}{2s} = 5 : 7 \]