Hello,
Please read this article https://docs.woocommerce.com/document/variable-product/ and want this video – https://youtu.be/LgzC4iK-j6A
Regards