Twelve numbers are selected from positive integers $1\le n\le27$ and partitioned into the following two sets $A$ and $B$ such that the power sums of $A $and $B$ are the same up to the fifth power.
$$A=\{1,5,10,18,23,27\}$$
$$B=\{2,3,13,15,25,26\}$$
We notice that we can also select twelve positive integers $1\le n\le23 $ and form sets $C$ and $D$ with the same property.
$$C=\{1,6,7,17,18,23\}$$
$$D=\{2,3,11,13,21,22\}$$
My question is what is the minimum $k$ for which this selection of $12$ integers $1\le n\le k$ is possible.
for the very symmetric way you constructed those, you have already found the best possible. For each, you can subtract the midpoint to get sextuples symmetric around zero:
Here are your two and some worse examples:
It seems possible that some less symmetric examples might do slightly better, but that is a much more elaborate and slow program