Solution:According to the question,
A 900 m long train crosses a pole in 20 sec.
Speed of 1st train = 900/20 = 45 m/sec
Let the ratio of speed of a train and a car is 9x : 5x
then,
9x = 45 m/sec
⇒ x = 5 m/sec
Hence, Speed of Car = 5x = 5 × 5 m/sec
Speed of Car = 25 m/sec
Now, a car crosses a train of length 840 m travelling in the same direction
⇒ 840/(65 - 25) = t
⇒ 840/40 = t
⇒ t = 21 sec
∴ The time taken by car is 21 seconds.