Complex sentence: One subswitch must have a connection to the needed input switch; the other must have a connection to the needed output subswitch.
Split into simpler sentences: One subswitch must have the connection to the needed input switch. The other has to connect to the needed output subswitch.