Ellos habían trabajado juntos por intereses comunes.

English Translation

They had been working together for common interests.

Why is this “por” instead of “para”? Thanks!