Need a gas valve to switch and select outlet air flow from two inlets sources

The suggestion scottyjr made about using a Y connection with two valves was a good one.

The OP wasn't clear on what type of gases or how much pressure so it's hard to give specific parts advice. Still, here's a link to a surplus medical 12 VDC solenoid valve that can handle gases and liquids (but probably only non-flammable ones) at elevated pressures, $7.50 each. It's just a suggestion and I have no idea if that will fit your needs.