A train is 360 meter long is running at a speed of 45 km/hour. In what time will it pass a bridge of 140 meter length.

A. 20 seconds

B. 30 seconds

C. 40 seconds

D. 50 seconds

Please do not use chat terms. Example: avoid using "grt" instead of "great".