In your example A = {17, 20, 22, 26, 27, 28} and B = {17, 19, 21, 22, 27, 28}, or A = {0, 3, 5, 9, 10, 11}, B = {0, 2, 4, 5, 10, 11}. Multiset of pairwise differences is {0^6, 1^2, 2^2, 3, 4, 5^2, 6^2, 7, 8, 9, 10, 11, 18, 19, 20, 21, 22, 23^2, 24^2, 25, 26, 27^2, 28^2}. Which is a multiset representation of that polynomial, if we exclude zeros. Symmetry of this multiset in Z_29 is what we are discussing. Alas, for any subset X the multiset of its pairwise differences is symmetric.