put heads together
- to work together
Wiktionary
verb
- To collaborate in a mental task, such as generating ideas.
“I'm sure if we put our heads together we can come up with a solution.”
“Sam and Bran put their little heads together and discover that Jon Snow’s real name is Jon Sand, er, Aegon Targaryen.”