Variant based on chosen variant

Hi everyone. I am a newbie, so I am a bit confused how to organize the right approach for my task.
For example, I have a variant set with 2 different car bodies (no problem with this part) and 2 car spoilers. Each spoiler suits only to its car body. So when I click button “Add Spoiler” spoiler will be added based on previously chosen car body (for car body “A” spoiler “A” and for car body “B” spoiler “B”)
Thanks!