IF Condition: Setting Two interlinking dropdown options

I’m trying to set a specific list of options on the dropdown object, however, I would also like to set it so that when a user chooses a selection on the 1st dropdown object, it’ll trigger a unique set of list to show up on the 2nd drop down object.

For example, 1st dropdown list contains fruits of different kinds.

1st Dropdown list

  1. Apple
  2. Banana
  3. Mango

When the user selects apple, on the 2nd dropdown object it will show the kinds/types of apples available. If the user selects banana, it’ll show the different kinds/types of bananas available, same goes for mango.

How do I set the logic to do that kind of function?