#HalachaYomi OC 55:18 If some of the ten are in the synagogue and some of them are in the enclosure, they do not join with each other.