Step 1: Concept
Total distance to cross = Sum of the lengths of the two trains. Relative speed is used for trains crossing each other.
Step 2: Calculation
Total Distance ($D$) = $100m + 150m = 250m$.
Relative Speed ($S$) = $30m/s + 20m/s = 50m/s$ (Assuming opposite directions for crossing).
Step 3: Formula
Time ($T$) = Distance Speed = $250m / 50m/s = 5s$.
Step 4: Conclusion
The time taken is 5 seconds.
Final Answer: (A)