I'll just share my experiences as below and would just like to ask what principle or theory that could possibly explain the phenomenon? And what term you call it?
I'm a computer programmer. Sometimes there are program logic related problems that I was trying to solve for hours, and yet cannot figure out the answers. But when I ask a colleague regarding the problem, in an instant, even before my colleague answers my question, I was able to draw the answer from my mind. Then, I'm going to tell my colleague, "uhm, ok, I know already! Thanks". It always happen. Sometimes, just the presence of another person would help you to resolve your problem.