解:設(shè)全班有?$x$?人,每包有?$y$?顆巧克力,
根據(jù)題意,得?$\begin {cases}20x + 80 = 5y&①\\7\leqslant 3y - 14(x - 1)<14&②\end {cases}$?
由①得:?$y = 4x + 16$?
?$ $?將?$y = 4x + 16$?代入?$②$?得:?$7\leqslant 3(4x + 16)-14(x - 1)<14$?
∴?$\begin {cases}3(4x + 16)-14(x - 1)\geqslant 7\\3(4x + 16)-14(x - 1)<14\end {cases},$?即?$\begin {cases}{-2x+62<14}\\{-2x+62≥7}\end {cases}$?
解得?$24<x\leqslant 27.5$?
∵?$x$?是正整數(shù),∴?$x$?可以為?$25,$??$26,$??$27$?
∴全班至少有?$25$?人,至多有?$27$?人。