There is no rule for that .You have to know compound nouns ,recognise them and use them in meaningful sentences
قوانين المنتدى