Matthew is a boy who takes his math seriously, and thinks imaginary things like unicorns and magic are a waste of time. Kidnapped and taken to a castle in space where he is expected to teach magic to a princess, he is soon faced with challenges he never dreamed possible. With some hard work and a little imagination, however, Matthew finds that magic and math can often work together ...