infosys - yeshwanthpur express starts at 8 am from a towards b and seshadri express starts at 8 am from b towards a after their meet yeshwanthpur express takes 18 hours to reach b and seshadri express takes 8 hours to reach a then which of the following is the - skillgun

If two trains start at the same time from A and B towards each other and after they take a and b hours in reaching B and A respectively, then
A’s speed : B’s speed = sqrt(b) : sqrt (a).”
Here they start at same time ( 8 am) and travels in opposite direction.
After their meet,Yeshwanthpur express takes 18 hours to reach B and Seshadri express takes 8 hours to reach A.
b = 8 and a = 18.
By using the above note, required ratio = sqrt(8) : sqrt(18) = 2 sqrt(2) : 3 sqrt(2) = 2 : 3.
Hence, the answer is 2 : 3.