You may generalize to an arbitrary number of masses $m_j$ at positions $\vec{r}j$. The center of mass is defined as $$ \vec{R} = \frac{\sum_j \vec{r}_j m_j}{M}, $$ where $$ M = \sum_j m_j.$$ Its time derivative is $$ \vec{V} = \frac{d\vec{R}}{dt} = \frac{\sum_j \vec{v}_jm_j}{M} = \frac{\sum_j \vec{p}_j}{M} \Rightarrow \vec{P} = M\vec{V} = \sum_j\vec{p}_j,$$ where $\vec{p}_j$ is the momentum of mass $j$, and $\vec{P}$ is the momentum of the center of mass. The time derivative of the last equation gives $$ \frac{d\vec{P}}{dt} = \sum_j\frac{d\vec{p}_j}{dt}.$$ According to <PERSON>'s second law we find $$ \frac{d\vec{P}}{dt} = \sum_j\vec{F}_j,$$ where $\vec{F}_j$ is the net force acting on mass $j$. 766
This net force can be written as $$ \vec{F}_j = \sum{i}\vec{F}{ij}^{\mathrm{(int)}} + \vec{F}_j^{\mathrm{(ext)}},$$ where $ \vec{F}{ij}^{(int)}$ is the force exerted by mass $i$ on mass $j$ (internal force), whereas $\vec{F}j^{\mathrm{(ext)}}$ is the net force on mass $j$ by forces that are external to the system of masses. Inserting this gives $$ \frac{d\vec{P}}{dt} = \sum{ij}\vec{F}{ij}^{\mathrm{(int)}} + \sum_j\vec{F}_j^{\mathrm{(ext)}}.$$ According to <PERSON>'s third law (actio = reactio) we have $$ \vec{F}{ij}^{\mathrm{(int)}} = -\vec{F}{ji}^{\mathrm{(int)}},$$ and therefore $$ \sum{ij}\vec{F}_{ij}^{\mathrm{(int)}} = 0.$$ On the other hand, $$ \sum_j\vec{F}_j^{\mathrm{(ext)}} = \vec{F}^{\mathrm{(ext)}}$$ is the total external force acting on the system of masses. As a result $$ \frac{d\vec{P}}{dt} = \vec{F}^{\mathrm{(ext)}},$$ i.e., the change in time of the momentum of the center of mass is equal to the total external force.
If the masses are isolated, as you ask in your question, $\vec{F}^{\mathrm{(ext)}}=0$, and therefore the center of mass moves with constant momentum (i.e., constant velocity). If you choose the center of mass to be the origin of your frame of reference in which you describe the motion of the masses, then this point remains fixed, and the masses may orbit around this point under the influence of the internal forces, if appropriate initial conditions are given. 766