Hello,
Please watch this video – https://youtu.be/LgzC4iK-j6A read more about variable products – https://docs.woocommerce.com/document/variable-product/
Regards