In Ted's English class, 80% of the students completed an essay by the due date. There are 30 students in Ty's English class. How many completed the essay by the due date?
A) 20
B) 24
C) 30
D) 40