Answer:
Dear Mr/Mrs As it may have come to your attention, I have missed school without permission for a significant amount of time. I deeply apologize for my actions and now take note of how important education is and the need for a student to be present to succeed. Although I do not wish to eleborate on the reason for my absence, some information may be helpful and necessary. I have been struggling with some family problems and anxiety that has all majority wise been resolved. As I continue as a student of your school, I pledge to try my hardest to eliminate all innapropriate behavior that was shown before. I greatly appreciate all of your commitment to your school and students.
Sincerely,
Sorry if this sucks, I was not given much information as to what to write about.