HAPPY BIRTHDAY, NOUN JOBS!
The subject gets…
the direct object…
of the possessive…
to the indirect…
in the preposition’s object.

The subjects get…
the direct objects…
of the possessives…
to the indirects…
in the preposition’s objects.

Examples – 
1. Sophia (subject) collected the essays (direct object) of her rhetoric class (possessive) for her favorite teacher (indirect object) in college (object of the preposition).


2. Trinity (subject) got the sub (direct object) of the day (possessive) for her dad (indirect object) waiting in the car (object of the preposition).