Heres some solutions:
1.Talk to your principle alone (no bitch teach), tell him/her that you shouldn't be given a ticket for that without any sort of warning, especially since you guys usually do it and it was just a forgetful mistake.
2.Tell your parents, get them to bitch out the teacher/principle. Teachers and principles hate bitchy parents.
3.Contest the ticket (if it in fact does go through), talk to a judge about it if you can.
4.Get revenge on that bitch of a teacher by egging her house, destroying her car, leaving garbage ALL over her property then get the city to give her a fine for the garbage.