From Wiktionary, the free dictionary
two brain cells to rub together pl (plural only)
- (informal) A modicum of intelligence.
Anyone with two brain cells to rub together can come up with an idea for a better system. The problem is actually implementing it.