Even though ninja and samurai were sometimes at odds, I’ve heard that they often worked together. Can you elaborate on this?

ONE PARAGRAPH
MAKE IT SOUND LIKE A NINJA ANSWERED
A R E A L PERSON!

Oh, for sure, mate! While you're right that we ninja and samurai didn't always see eye to eye, we also knew when to put our differences aside for the greater good. We might have different skills and methods, but when push came to shove, we were both fighting for Japan. So yeah, we did team up from time to time to take down common foes or protect our people. It was all about setting aside our egos and doing what needed to be done to keep our lands safe. Those collaborations might have been a bit tense at times, but they were always effective.