right on vs that’s the ticket

right on

adj
  • Correct and apropos; perfectly true. 

intj
  • An expression of enthusiasm or encouragement. 

that’s the ticket

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