We know that,
Biology has more than 25 students
Chemistry has more than 25 students
We need to know if there is atleast one student enrolled in biology and chemistry
Lets go through each statement 1 by 1,
Statement (1),
Every student who is not enrolled in biology is also not enrolled in chemistry
The contapositive statement also means that every student who is enrolled in chemistry is also enrolled in biology, and since chemistry has more than 25 students, then they are in biology too which answers our requirement
Statement (1) is sufficient
Statement(2),
Every student enrolled in chemistry is also enrolled in biology
Since we know chemistry has more than 25 students, then biology too will have more than 25 students.
This answers our requirement to see if there is atleast one student enrolled in both biology and chemistry class
Statement(2) is sufficient
D. Each statement alone is sufficient