They are two different prepositions. You need to tell us what exactly you don't understand about these prepositions. One example: I got a present for Barbara.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.