设火车长x
(1200-x)÷30=(1200+x)÷50
6000-5x=3600+3x
8x=2400
x=300
(1200+300)÷50
=1500÷50
=30(米/s)
答;火车的长300m,速度30m/s