Let d be the displacement of the escalator.
Velocity of girl w.r.t. elevator =t1d=vge
Velocity of elevator w.r.t ground veG=t2d
Then velocity of girl w.r.t ground
vgG=vge+veG
i.e., VgG=Vge+VeG
td=t1d+t2d
t1=t11+t21
t=(t1+t2)t1t2