Hello Arbind,
Thank you for submitting the question here. Regarding your question:
1. You should create the Color option under Options Manager:
docs.joomdonation.com/eshop/catalog/options
. The Color option should have values: Green, Red
2. You go to edit product, under Option tab, assign Color option with corresponding option value Green and Red to product. With each option value, you can enter the specific quantity there:
docs.joomdonation.com/eshop/catalog/products#product-options
I hope this is useful.
Sincerely, Giang