Split between the two - you should get enough to get top tier in both.
What's the point of switching completely to AA/CX if after these trips you plan to go back to UA and *A?
Also check UA forum for GS benefits and qualification details - you'll get a much better overview overthere...