In an examination, it was found that every student has failed in at least one subject out of the three subjects: English, Maths and Science. 28 students failed in English, 30 students failed in Maths and 32 students failed in Science. 6 students failed in English and Maths, 8 students failed in Maths and Science and 10 students failed in English and Science. The number of students who failed in only one subject is 54. Also, 20 students failed only in Maths.
Determine the number of students who appeared in the examination.