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