It Takes Two to Tango

What does the idiom “It Takes Two to Tango” mean?

Definition:

When something goes wrong involving two people, it’s likely that they share the blame; cooperation is necessary

For example:

“Elena blames Juan for the breakup of their marriage, but it takes two to tango.”