400 farmers, 400 knights, 200 maceman
First, let the farmers slam shut the canal. Destroy the bridge. Destroy all cans with a knight, and defeat the other soldiers with your knights. Destroy the middle gate with your maceman, defeat the rest and take the flag.