Hello,
Please read about variable product https://docs.woocommerce.com/document/variable-product/ Let us know if you need any further assistance.
Regards