i)
Marks over 50 means those students are above the 1st quartile, that means 3/4 of the total students are over 50 marks = 27, therefore total no. of students in class = 27 x 4/3 = 36.
ii)
Marks under 70 means students are below the 3rd quartile, that is 3/4 students are under 70 marks = 36 x 3/4 = 27 students.