=2×518
=59m/s
Speed of the second train =4kmph
=4×518
=109m/s
xy−59=9
9y−5=x
90y−50=10x...........................................(1)
xy−109=10
90y−100=9x...........................................(2)
Substracting 1 and 2
90y−50−90y+100=10x−9x
x=50
So, the length of the train=50m