Wiktionary
hit the nail on the head
vb. 1 (&lit lang=en hit nail head) 2 (context idiomatic English) To identify something exactly; to arrive at exactly the right answer.