The difference between them is the sum of the middle four numbers 52-36= 16.
The middle four numbers require that the sum of any two numbers is not more than 13 and not less than 5, and a group can be obtained: 2 3 4 6, so the complete number is:
8 1 7
4 5
3 6 2