Prepositions like 'for' and 'of' always have a painful number of specific situations in which they are conventionally used, and general rules are not much help. 'For' has a sense of "to the benefit of" or "towards the purpose of," where as "of" has the sense of "belonging to," but these general ideas only help a little when many specific phrases are being memorized.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.