gain mastery over vs give way to

gain mastery over

give way to

How often have the words gain mastery over and give way to occurred in a corpus of books? (source: Google Ngram Viewer )