gain mastery vs learn the ropes

gain mastery

learn the ropes

verb
  • To learn the basics or master introductory knowledge. 

  • To learn some skill requiring specialist knowledge. 

How often have the words gain mastery and learn the ropes occurred in a corpus of books? (source: Google Ngram Viewer )