Create a new student export.
Select appropriate filters.
On the Output tab, select Relationships, Relation, Record ID.
In the Relationships criteria window, enter the number of relationships to export for each student.
Select the appropriate relationship types to export record IDs for.
Select OK.
Add any additional output fields.
Select Export Now or preview the export.