[tex]\begin{gathered} \text{Let assume one train spe}ed\text{ is x km/h} \\ \text{Second train spe}ed\text{ is }\Rightarrow(x+18)\text{ km/h} \\ \text{They m}eet\text{ in 2 hour,so} \\ 2=\frac{480}{x+x+18} \\ 2x+18=\frac{480}{2} \\ 2x=240-18 \\ x=\frac{222}{2} \\ x=111\text{ km/h (1st train spe}ed) \\ x+18=111+18=129\text{ km/hr (2nd rain sp}eed)\text{ } \end{gathered}[/tex]