You can either merge the two objects into one object with self-collision cloth physiscsphysics, or you can have two separate objects, each with its own cloth physics, but then both need to also have collision physics enabled.
For more explanation see the answer to this question: How can I make sure that simulated cloth doesn't go through other objects?