the equation is as follows:

lack of physical exercise + boredom = DS6 being silly

the solution:

teacher writing DS6 notes (lack of physical exercise + boredom) = (DS6 writing back * expressing his feelings) - DS6 being silly


or something like that.
Anyway, his teacher started writing him notes about his behavior but included what he does well (behavior wise, etc). and it's helped!