In an examination 30% and 35% students respectively fail in History and Geography while 27% students failed in both the subjects. If the number of students passing the examination is 248, then find thew total numbers of student who appeared in the examination.