Need help understanding decimal to hex conversion for patching audio

I was having a bit of trouble understanding this part: https://dortania.github.io/OpenCore-Post-Install/universal/audio.html#making-layout-id-more-permanent

My codec has these layout id options: 12, 15, 18, 28, 32 and 55

Currently im using layout id 12, wich from my understanding is C in hex. And would be something like: 0C000000 in deveiceproperties.

The part that throws me off is when the hex number is in 2 digits, example would be 18, wich converts too 12 in hex.

Would my final number in deviceproperties be 01200000 or 012000000 ?

submitted by /u/t0mmenhansen
[link] [comments]