Ax20 + Bx10 + Cx30 + Ax10 This is a little different from how Huffman works. Huffman works on bits.