Go to products page
Navigate to your sub item click on actions and Select convert to Sub
Search For the Main Sku and assign the right quantity for example if you buy as 1 piece and you sell it in 2 pieces you do as the image below if it’s the same quantity you do 1 and 1
Then click convert
to do it in bulk please see this Article