play up to vs take pains with

play up to

verb
  • To try to gain favour with by flattery. 

take pains with

How often have the words play up to and take pains with occurred in a corpus of books? (source: Google Ngram Viewer )