You can
put this solution on YOUR website!
So you have 27 full compartments and one that has some people in it, but not yet full

people are contained in the 27 full compartments.
that leaves 387-378 = 9 in the one that is not yet full
Also (14* 0.642) = 9 - so that 'remainder' is 9 in both cases