Link products and main product

Hi,

If I understand you correctly, please check this topic Create two dependent Select attributes - #5 by andrii

​I hope this is helpful to you.