A={x:x is the factor of 24,x belongs to N}
B={x:x is the prime number,x<30}
Then find AUB, A intersection B, A-B, B-A.
Given A={x:x is factor of 24}
we will find all the factors of 24 and include them in set A
∴A={1,2,3,4,6,8,12,24}
similarly for set B
B={2,3,5,7,11,13,17,19,23,29}
A∪B={1,2,3,4,5,6,7,8,11,12,13,17,19,23,24,29} is elements of A or B
A∩B={2,3} is common elements between the sets A and B
A-B= {1,4,6,8,12,24} is the set of elements of A which are not in B.
Similar way, B-A={5,7,11,13,17,19,23,29} is the set of elements of B which are not in A.