Let A∪B=Y, B\A=M, A\B=N and X \Y=L.
Then X is the disjoint union of M, N, L and A∩B.
Now A∩B ={2,3,5,7} is fixed.
The remaining six elements 1,4,6,8,9,10 can be distributed in any of the remaining sets M,N,L.
This can be done in 36 ways. Of these if all the elements are in the set L, then A=B={2,3,5,7} and which this case has to be deleted.
Hence the total number of pairs (A,B) such that A⊆X, B⊆X. A≠B and A∩B ={2,3,5,7} is 36−1.