The best way to rewrite the sentence is:
A. Everybody needs to write a 5-page research paper and turn it in to their teacher no later than May 5.
This option uses "their" as a singular, gender-neutral pronoun, making it inclusive and grammatically correct.