Speed of second train = \( \frac{360}{4} = 90 \, \text{km/h} \)
Let the speed of first train be \( x \), and second train be \( y \)
Given \( x : y = 8 : 9 \Rightarrow \frac{x}{y} = \frac{8}{9} \Rightarrow x = \frac{8}{9} \times 90 = 80 \, \text{km/h} \)
\[
\text{Distance covered by first train in 3 hours} = 80 \times 3 = \boxed{240 \, \text{km}}
\]