document.write( "Question 214478: A car is traveling on a road that is perpendicular to a railroad. When the car is 30 meters from the crossing, the car's new collision detector warns the driver that there is a train 50 meters from the car and heading toward the same crossing. How far is the train from the crossing? \n" ); document.write( "
Algebra.Com's Answer #162002 by checkley77(12844)\"\" \"About 
You can put this solution on YOUR website!
You have a right triangle with one side=30 & the hypotenuse=50.
\n" ); document.write( "30^2+x^2=50^2
\n" ); document.write( "900+x^2=2500
\n" ); document.write( "x^2=2500-900
\n" ); document.write( "x^2=1600
\n" ); document.write( "x=sqrt1600
\n" ); document.write( "x=40 m. is the distance of the train from the crossing.
\n" ); document.write( "Proof:
\n" ); document.write( "30^2+40^2=5062
\n" ); document.write( "900+1600=2500
\n" ); document.write( "2500=2500
\n" ); document.write( "
\n" );