It takes 20.5 minutes for the two planes to be at the same altitude.
Step-by-step explanation:
Let 't' be time at which the two planes be at the same altitude.
⇒ 520 + 40t
⇒ 3800 - 120t
When two plane be at the same altitude,
⇒ 520 + 40t = 3800 - 120t
⇒ 160t = 3280
⇒ t = 3280/160
t = 20.5 minsutes