Question 118932
suppose freight train takes x hrs to complete the trip

thus the passenger train will take x-2 hrs to complete the trip.

Now as passenter traing avg 96km/hr and freight train averages 64km/hr and as distance travelled by both is same,

96(x-2)=64(x)

thus dividing both sides by 16 gives,
6(x-2)=4x
thus 6x-12=4x
thus 2x=12
thus x=6.

Thus the distance of the trip is 6*64 or 96(6-2) which equals to 384km.