You can remember the meaning of 工人 with this easy mnemonic:
The people (人) of a faraway kingdom were put to work (工) to build a giant statue of the king. Workers worked hard from sunrise to sunset.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.