Question 305484
It's a right triangle with a side of 30 and hypotenuse of 50.
Use Pythagoras to find the other side.
50^2=30^2+x^2
x^2=2500-900=1600
x=400 meters (train's distance from the crossing)