How to constrain 2 dynamic arrays to related to each other?

In reply to dave_59:

In reply to mlsxdx:
Some questions:
Are the number of names in c_typ_e and e_typ_e fixed at 2 and 4 respectively?
Is arr_sz constrained to the product of this numbers, 2*4 = 8?
If that’s not the case, then you need to express your #3 requirement better.

Not fixed, mostly it will be 8n, but some cases, it could be 2n(n>0)