Season 3 Episode 7: The Train Problem
Paper and Sandpaper are on a train that gets hijacked by the Algebra Villain, who will make them crash unless Paper solves an algebra problem.