Dense layer shape in LeNet

Hi. Thanks for the materials. Just a doubt in the input shape to Dense_layer after average pooling in Lenet. You mentioned that input to dense layer will be (Batch, channels*height*width) then it should have been (batch,16*5*5)=(batch*400). May I know why is it 120 in the Dense layer. Am I missing something here?