I am a bit confused. You first say A, B and none, then A, B, A, B,...
For the first case (A, B, none) a SPDT relay with NO to A, NC to B and the signal to COM through another relay. For the second case just one SPDT relay, A to NO, B to NC and signal to COM.
What are you switching? How often?