In an examination, 85% of the candidates passed in English and 65% of the candidates passed in Mathematics but 5% failed in both of these subjects.
If 154 candidates passed in both the subjects, what was the number of candidates who appeared in examination?