Sentence

彼らは同志である。

(かれ)らは同志(どうし)である。
They are in the same camp.
Sentence

違いがいろいろあるにも関わらず、ジョーンとアンは友達同士でいる。

(ちが)いがいろいろあるにも(かか)わらず、ジョーンとアンは友達(ともだち)同士(どうし)でいる。
In spite of their various differences, Joan and Ann are friends.