In an examination, 30% and 35% students respectively failed in English and Hindi while 27% students failed in both the subjects. If the number of students passing the examination is 248, find the total number of students who appeared in the examination?
A300
B400
C500
D600