Problem: a train with 120 wagons crosses john who is going in the same direction , in 36 seconds . it travels for half an hour from the time it starts ove ( who is also riding on his horse ) coming from the opposite direction in 24 seconds . in how much time after the train has crossed the mike do the john meets to mike ? rtaking the john ( he is riding on the horse ) before it starts overtaking the mike
Rationale: let the length of the train be l metres and speeds of the train arun and sriram be r , a and s respectively , then - - - - - - - - - - ( i ) and - - - - - - - - - ( ii ) from eq . ( i ) and ( ii ) 3 ( r - a ) = 2 ( r + k ) r = 3 a + 2 k in 30 minutes ( i . e 1800 seconds ) , the train covers 1800 r ( distance ) but the arun also covers 1800 a ( distance ) in the same time . therefore distance between arun and sriram , when the train has just crossed sriram = 1800 ( r - a ) - 24 ( a + k ) time required = = ( 3600 - 24 ) = 3576 s e
annotated_formula: subtract(divide(multiply(subtract(divide(add(36, 24), subtract(36, 24)), const_1), multiply(multiply(const_10, const_3), const_60)), const_2), 24)