Unlike per primary school enrolment, the number of students per middle school in Punjab (275) is far higher than the Khyber-Pakhtunkhwa (86).
Khyber-Pakhtunkhwa has a total of 2,645 middle public sector middle schools with overall 226,487 students enrolled in these schools. While the Punjab has middle 8,330 schools and overall 2,294,580 students are enrolled in these schools. Thus, on average there are 275 students in a middle school in Punjab whereas only 86 students per primary school in Khyber Pakhtunkhwa.
The following charts will explain this fact further.