How can I filter collision?

I have three tipes of object and I need one of them not to have collisions with one of the two restant (see the image to understand better)

Does someone know how?

Attachments