means that
two people pooling their knowledge and ideas may solve a problem more effectively than either could alone.
I couldn't solve the scheduling problem alone, but my colleague spotted a simple solution within minutes. “Two heads are better than one.”