Question 269228
You've actually solved the problem. The numbers in the two sets need to add up to  a common total and their squares also need to add to a common total:

Set A = {1,4,6,7}
Set B = {2,3,5,8}

Sum of A's elements is 1+4+6+7 = 18
Sum of B's elements is 2+3+5+8 = 18

Squares of A = {1,16,36,49}
Squares of B = {4,9,25,64}

Sum of A squares is 1+16+36+49 = 102
Sum of B squares is 4+9+25+64 = 102