a girl sitting in a train which is travelling at 40 kmph observes that a goods train travelling in a opposite direction , takes 12 seconds to pass him . if the goods train is 1120 m long , find its speed .