There were 642 students enrolled in a freshman-level chemistry class. By the end of the semester, the number of students who passed was 5 times the number of students who failed. Find the number of students who passed and the number who failed.