Explain which rules of inference are used for each step.

"Each of 5 roommates, Melissa, Aaron, Ralph, Veeneesha, & Keeshawn, has taken a course in discrete mathematics. Every student who has taken a course in discrete mathematics can take a course in algorithms. Therefore, all 5 roommates can take a course in algorithms next year."