Two trains, A and B, each 50 m long, are approaching a meeting point travelling with velocities 10 m/s and 15 m/s respectively. The tracks of the two trains are perpendicular to each other and both trains are 500 meters away from the meeting point. How far will be the train A from meeting point when train B crosses the meeting point?