inappropriate vs that’s the ticket

inappropriate

adj
  • Improper; adult; sexual. 

  • Not appropriate; not suitable for the situation, time, or place. 

that’s the ticket

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