Student Course selection tutorial

I’m working on a project where students need to select some courses from a list of all courses. I’ve been able to establish a many to many relationship but then I’m struggling with keeping records of what course what student has selected