Hit the nail on the head
If you are told you have ‘hit the nail on the head‘, it means you have said exactly the right thing. It is most commonly said when somebody astutely identifies the cause of a problem. However, someone might also say you have ‘hit the nail on the head’ if you answer a question correctly, or describe something accurately.