How to a quantity to each variant of a product?
To add a different quantity for each different variant, you would need to select the option of "Manually create each variant" in the "Product options - Size, colors..." of your product.
Then, when you create your variants, you can check the option "Track the quantity in stock of each variant" and add a different quantity for each of your choices.