be to the advantage of vs do someone a favor

be to the advantage of

do someone a favor

How often have the words be to the advantage of and do someone a favor occurred in a corpus of books? (source: Google Ngram Viewer )