You can remember the meaning of 老师 with this easy mnemonic:
My teacher is very old (老), and her teacher (师) is even older.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.