In the story, the characters develop strategies to deal with the shadows by forming alliances with each other, utilizing their individual strengths and abilities, and coming up with innovative plans to outsmart and overcome the shadows' threats. They also learn from their past experiences and mistakes to adapt their strategies for better results in dealing with the shadows.