Audio switching

Input A only goes to B and/or C OR none
Input B only goes to D and/or E OR none
Input C only goes to F and/or G OR none....

Each line could be handled by 2 relays but solid state relays are not cheap and mechanical ones are expensive so looking for electronic suggestion really....