To get out of math class in the Roblox game Escape Detention, the trick is to ask different questions as you interact with the environment.
Experimenting with alternative dialogue and choices is usually what unlocks the way forward.