Advice on moving a partition

So, one disk? A feasible route would be to extend X into the unallocated space (how big is that?) and then shrink it from the beginning of the partition to create some unallocated space that can then be filled up by C.
However, that all may be for nothing if your OS or boot shell doesn’t allow you to ‘move’ X because there is data in there. Not too much experience with that…