Skip to main contentSkip to solution

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.

  1. The numbers of non-CS students who took AI and ML were in the ratio 2: 5.
  2. The number of non-CS students who took either AI or ML was equal to the number of CS students.
  3. 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.
  4. 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.
  5. No CS student failed in AI, while no non-CS student got an A grade in AI.
  6. 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.
  7. 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.
  8. 30 students failed in ML.

How many CS students failed in ML?

Entered answer:

Solution

✅ Correct Answer: 12
Slide 1/11

Understanding the set :-

  1. There are two types of students - CS and non-CS, and two types of courses - (i) AI and (ii) ML.
  1. All CS students took both the courses, while non- CS students take one of these two courses, but not both.
  1. Students get 4 types of grade -

F - fail

A, B, C - according to the performance

In this set we are basically required to find the number of students of CS, non CS, what courses they have taken and also their grades.

ABCFTotal
CSAI
ML
Non CSAI2x
ML5x

Clue 1 says,

The numbers of non-CS students who took AI and ML were in the ratio 2 : 5.

Let it be, 2x and 5x

ABCFTotal
CSAI7x
ML7x
Non CSAI2x
ML5x

Clue 2 says,

The number of non-CS students who took either AI or ML was equal to the number of CS students.

Non-CS students who took either AI or ML = 2x + 5x = 7x

therefore, total number of CS students = 7x

And we know, All CS students took both the courses

=> In CS, AI = ML = 7x

ABCFTotal
CSAI7x
ML2y7x
Non CSAIy2x
MLy5x

Clue 3,

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.

Let the number of non-CS students who failed in AI / ML = y

=> number of CS students who got a C grade in ML is also = y + y = 2y.

ABCFTotal
CSAI07x
ML2y7x
Non CSAI0y2x
MLy5x

Clue 5,

No CS student failed in AI, while no non-CS student got an A grade in AI.

=> 00 CS students got F grade in AI

And, 00 Non CS students got an A grade in ML.

ABCFTotal
CSAI3a5a2a07x
ML4b5b2b7x
Non CSAI0b2x
MLb5x

Clue 6,

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.

Therefore, numbers of CS students who got A, B and C grades respectively in AI = 3a, 5a, and 2a

Also , in ML = 4b, 5b, 2b,

Now, we know CS students with C grade in ML = y

=> 2y = 2b

Also, For AI , 3a + 5a + 2a + 0 = 7x

=> 10a = 7x ... (1)

ABCFTotal
CSAI3a5a2a07x
ML4b5b2b2b/37x
Non CSAI0b2x
MLb5x

Clue 7,

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.

We know, total number of non-CS students failing in one of the two courses = b + b = 2b

=> number of CS students failing in one of the two courses will be = 2b/3

ABCFTotal
CSAI63105420210
ML72903612210
Non CSAI01860
ML18150

Clue 8,

30 students failed in ML.

we know, total students who failed in ML = 2b/3+b2b/3 + b

=> 2b/3+b=302b/3 + b = 30

=> b=18b =18

Substitute b's value in the table.

Which will give us x's value as ;

36+45+18+24=7x36 + 45 + 18 + 24 = 7x

=> 210=7x210 = 7x

=> x=30x = 30

=> since, 3a+5a+2a=2103a + 5a+ 2a = 210

=> 10a=21010a = 210

=> a=21a = 21

ABCFTotal
CSAI63105420210
ML72903612210
Non CSAI0211860
ML7518150

Clue 4,

In both the courses, 50% of the students who passed got a B grade.

Now, total number of students who passed in ML ;

i) in CS = 210−12=198210 - 12 = 198

ii) in non CS = 150−18=132150 - 18 = 132

=> Half of 198+132=330198 + 132 = 330 will get B grade

=>165165 got B grade in AI

out of which, 90 got it in CS

Therefore, 165 - 90 = 75 got B grade in non CS, ML.

Similairly for AI ;

total number of students who passed in AI ;

i) in CS = 210

ii) in non CS = 60 - 18 = 42

=> Half of 210 + 42 = 252 will get B grade

=> 126 got B grade in AI

out of which, 105 got it in CS

Therefore, 126 - 105 = 21 got B grade in non CS, AI.

ABCFTotal
CSAI63105420210
ML72903612210
Non CSAI021211860
ML27753018150

Continuing with clue 4,

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.

Since numbers of students who got A and C grades were the same for AI

=> 63+0=42+63 + 0 = 42 + non CS (AI)

=> non CS , AI = 21 students with C grade.

Now, the ratio is 3:2 for ML

Let the number of students with grade A in ML non CS = mm

and, the number of students with grade c in ML non CS = nn

=>(72+m)/(36+n)=3/2 (72 + m) / (36 + n) = 3 / 2

=> 3n−2m=363n - 2m = 36...(1)

also, m+75+n+18=150m + 75 + n + 18 = 150

=> m+n=57 m + n = 57...(2)

Solving eq (1) & (2) , we get,

m=27m = 27

and n=30n = 30

ABCFTotal
CSAI63105420210
ML72903612210
Non CSAI021211860
ML27753018150

12 students failed in ML.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question