You can remember the meaning of 居民 with this easy mnemonic:
The residents of our town reside (居) in the town center, where people (民) can find everything they would need in their daily lives.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.