36 pens and 40 notebooks were awarded on average to a few students with excellent grades. As a result, there was one more pencil and two books were missing. How many students are there at most with excellent grades?
36枝笔、40本簿子，平均奖给几个成绩优良的学生，结果多出一枝铅笔，簿子差两本，问成绩优良的学生最多有几人？
<result>7</result>