Let the length of the escalator be L
The rest velocity of the man be, u
The velocity of escalator be v
So, L=60u and Also, L=40v
Let, t be the time taken to move up the escalator.
The total velocity will be, u+v
So time taken = Lu+v
Now, u = L60 and v = L40
Substituting the value, t=24sec