You can remember the meaning of 正式 with this easy mnemonic:
This is a formal wedding, so come with a straight (正) tie and some type (式) of tux.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.