Ms. Peabody's class participates in a gingerbread house building contest where students must solve math problems to earn building supplies. The story follows four students—Mira, Kenny, Wallace, and Dajia—as they collaborate to build their house, encountering both mathematical challenges and construction mishaps.