All the first-year students in the computer science (CS) department in a university take both the courses (i) AI and (ii) ML. Students from other depa...
Question
All the first-year students in the computer science (CS) department in a university take both the courses (i) AI and (ii) ML. Students from other departments (non-CS students) can also take one of these two courses, but not both. Students who fail in a course get an F grade; others pass and are awarded A or B or C grades depending on their performance. The following are some additional facts about the number of students who took these two courses this year and the grades they obtained.
- The numbers of non-CS students who took AI and ML were in the ratio 2 : 5.
- The number of non-CS students who took either AI or ML was equal to the number of CS students.
- The numbers of non-CS students who failed in the two courses were the same and their total is equal to the number of CS students who got a C grade in ML.
- In both the courses, 50% of the students who passed got a B grade. But, while the numbers of students who got A and C grades were the same for AI, they were in the ratio 3 : 2 for ML.
- No CS student failed in AI, while no non-CS student got an A grade in AI.
- The numbers of CS students who got A, B and C grades respectively in AI were in the ratio 3 : 5 : 2, while in ML the ratio was 4 : 5 : 2.
- The ratio of the total number of non-CS students failing in one of the two courses to the number of CS students failing in one of the two courses was 3 : 1.
- 30 students failed in ML.
How many CS students failed in ML?