Your expedition finally stands at the heart of the ancient temple. But as you study the inscriptions in the darkness, two wisps of green smoke burst forth. The walls begin to shake. The giant sandglass begins flowing with less than an hour before it empties, and a rumbling tells you that you don’t want to be around when that happens. Can you use math to escape the temple? Dennis E. Shasha shows how. Lesson by Dennis E. Shasha, animation by Artrake Studio.