A Three Team Scheme (Japanese: マグマ団VSアクア団！ひみつきちの戦い！Team Magma VS Team Aqua! Secret Base Battle!) is episode 27 of Advanced Generation. It was first broadcast in Japan on May 29, 2003 and in the United States on April 17, 2004.