Miss Cheerilee informs Applejack that she never passed elementary mathematics. Since every pony in Equestria is legally required to understand rudimentary math, Applejack must retake and pass a basic exam in order to avoid going back to school.
Sounds simple enough, right?