You can remember the meaning of 队伍 with this easy mnemonic:
In our team (队), it's very hard to rise through the ranks within your first five (伍) years.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.