How did Claudia and Jamie become a team in the book 'From the Mixed-up Files of Mrs. Basil E Frankweiler'?

They work together through arguments and helped each other.