Read the following information carefully and answer the question based on that.
Two teams of five each must be selected from a group of ten persons. $\text{A}$ through $\text{J}$ of which $\text{A, E}$ and $\text{G}$ are doctors; $\text{D, H}$ and $\text{J}$ are lawyers; $\text{B}$ and $\text{I}$ are engineers; $\text{C}$ and $\text{F}$ are managers. It is also known that
If $\text{C}$ and $\text{G}$ are in different teams, then who are the other team members of $\text{A}$?