To do this we will pack 2 decimal digits into a single byte. You can use integer arithmetic (division and
modulus) to extract the individual decimal digits, use a left shift operation to "move" the current digits to
the left, then add the next digit into the result.
You are actually making use of Binary Coded Decimal (BCD). BCD uses 4 bits to encode the 10
decimal digits. If you look at hexadecimal values you will notice that we can use 4 bits to represent a
number between 0 and 9. Therefore you can convert any number into a sequence of hex digits that read
just like the original number:
3594 would be converted to 0x3594.