The statement clearly states that 30% of students scored more than 80%, and the rest scored below 40%.
This implies that no students scored in the range 40%-80%, making inference I correct.
Since the majority of students scored below 40%, most students have not performed well, making inference II correct as well.
Thus, the correct answer is Both inferences I and II follow.