Subject: mathqa
Question: 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 .
Option: 
A: 295
B: 299
C: 297
D: 296
Answer: D