For Downlink Layer Mapping:
Just to give you more intuitive understanding of these table shown above, I represented two typical items as illustration.
Following illustration is the case where the number of codeword is 2 and number of layer is 4.
Following illustration is the case where the number of codeword is 2 and number of layer is 8.
For Uplink Layer Mapping: