How would I store multiple numbers in a UInt16Array or UInt32Array?

If I have one small number, that can be from 0-8, and another larger number that can be from 0-50, how would I store both of these numbers in one index of a UInt16Array or UInt32Array?

I want to be able to access both of these values and then set them again.