In an examination 80% passed in English, 85% in Maths, 75% in both and 40 students failed in both subjects. Then the number of students appeared are