Add pupils at 9 p.m. and 9.30 p.m.
9 + 13 = 22 pupils went to bed before 10 p.m.

Final Answer: 22