Sentence

彼女がドアを開けるやいなや猫が走り出た。

彼女(かのじょ)がドアを()けるやいなや(ねこ)(はし)()た。
No sooner had she opened the door than a cat ran out.
Sentence

授業が終わるとすぐに彼らは教室から走り出た。

授業(じゅぎょう)()わるとすぐに(かれ)らは教室(きょうしつ)から(はし)()た。
As soon as the lesson was over, they rushed out of the room.