In a class, among the students who passed, Amisha is 22nd from the top and Sajal, who is 5 ranks below Amisha, is 34th from the bottom. All the students from the class have appeared for the exam. If the ratio of the students who passed the exam to those who failed is 4:1 in that class, how many students are there in the class?