Connected collections

lets say i want to add entry where i select two collections

The question is how to make these two collections connected, so when I select item from first collection i can add some filter to results of second collection ?

GnbnE