You can remember the meaning of 主要 with this easy mnemonic:
I want many things in life, but what I mainly (主) want (要) is happiness and health.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.