accomplish vs do the trick

accomplish

verb
  • To execute fully; to fulfill; to complete successfully. 

  • To finish successfully. 

  • to fill out a form. 

  • To complete, as time or distance. 

do the trick

verb
  • To work; to be successful; to solve a problem; to be sufficient or adequate to fulfill a purpose. 

How often have the words accomplish and do the trick occurred in a corpus of books? (source: Google Ngram Viewer )