on the button vs that’s the ticket

on the button

prep
  • Exactly, precisely. 

that’s the ticket

How often have the words on the button and that’s the ticket occurred in a corpus of books? (source: Google Ngram Viewer )