Rapunzel is a princess locked in a tower by her evil stepmother. She dreams of seeing the floating lanterns that appear every year. Her stepmother agrees to let her go if she solves math equations on the tower wall. Rapunzel finds a magical book that teaches her about functions and how to add them. She uses this knowledge to correctly solve the equations and gains her freedom from the tower.