Mei can type 6 words a minute. She has to write a letter to the mayor for a school project and she has already written the first 20 words. Mei has to type for 18 minutes to finish her letter. If Mei types 6x+20 words, how many words did Mei write in all