provided that if enrolling all students pursuant to paragraphs (1), (2), and (3) will cause the enrollment of the school to exceed the capacity of a program, class, grade level, or building, the school shall enroll all students described in paragraphs (1) and (2) and fill any remaining capacity of the program, class, grade level, or building by selecting eligible students described in paragraph (3) through a lottery system.
HRS § 302A-1143.5