If we tightly pack variables in a solidity contract, they are stored in one same slot. We are going to store 6 variables with a total storage of 32 bytes = 256 bits.
Variable a => 16 bits Variable b => 16 bits Variable c => 16 bits Variable d => 16 bits Variable e => 16 bits Variable f => 128 bits
For example, if we set the next values:
set(1,2,3,4,5,6)
the storage is stored with inverse order:
Decimal: 2041694201525630780872482490871948902401
Binary:
f=> 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000110
e=> 0000000000000000000000000000000000000000000000000000000000000101
d=> 0000000000000100
c=> 0000000000000011
b=> 0000000000000010
a=> 0000000000000001