Conditional Subform fields

Conditional Subform fields

Hello

I have a subform inside a normal form. The first dropdown in the subform asks for type of food (options are vegetable, fruit)
If vegetables is selected, the next dropdown in the subform should show only vegetables names and not show names of fruits. Similarly, it would do the same with fruits. 

There are many dozens of vegetables and fruits in a table. 

How should one go about implementing this?