Length of the train=60m
Time it takes to pass from a pole is = 5 s
Now, from this the velocity of the train can be known easily.
Speed = distance/time=60/5=12m/sec
Now with this speed, to cover a distance of 540km, the train will take time =Time=distance/speed=540/12=45sec