The average mark of the students of a class in a particular exam is 80. If 5 students whose average mark in that exam is 40 are excluded, the average mark of the remaining will be 90. Find the number of students who wrote the exam.
Choose the correct choice from the following options:
A) 87  B) 27  C) 25  D) 26  E) 24

Rationale: "let the number of students who wrote the exam be x . total marks of students = 80 x . total marks of ( x - 5 ) students = 90 ( x - 5 ) 80 x - ( 5 * 40 ) = 90 ( x - 5 ) 250 = 10 x = > x = 25 answer : c"
Answer: C