You can remember the meaning of 感谢 with this easy mnemonic:
I feel (感) thankful (谢) for everyone I've met in life. I would like to express thanks especially to the teachers who have taught me during my school years.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.