Let $L$ be the unknown length of an escalator, and $s$ the unknown speed of a (working) escalator. And let $q$ be the kid's speed.
Then
\begin{align} \frac{L}{q + s} = 6 \\\ \frac{L}{q - s} = 30 \end{align}
and we want to know the value of \begin{align} \frac{L}{q}. \end{align} Simplifying those first equations gives
\begin{align} L &= 6q + 6s \\\ L &= 30q - 30s \end{align} Multiplying the first by 5 and adding, we get \begin{align} 5L &= 30q + 30s \\\ L &= 30q - 30s \\\ 6L &= 60 q \\\ L &= 10q \\\ \frac{L}{q} &= 10. \end{align}
It'll take 10 seconds.