Hello,
Please read how to create variable product https://docs.woocommerce.com/document/variable-product/
Regards