The teacher brings 14 bars to school because 7 x 2 = <<7*2=14>>14
There are 21 total bars of chocolate because 7 + 14 = <<7+14=21>>21
There are 168 total squares of chocolate because 21 x 8 = <<21*8=168>>168
Each student gets 7 squares because 168 / 24 = <<168/24=7>>7
#### 7