inapplicable vs that’s the ticket

inapplicable

adj
  • Not applicable; that does not apply or cannot be applied; unsuitable or irrelevant. 

that’s the ticket

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