The given sets are A={2,3} because x is a prime factor of 24, B={6,7,8,9,10,11,12} because 5<x≤12 and C={1,4,5,6}
Let us first find A∪(B∪C) as follows:
A∪(B∪C)={2,3}∪({6,7,8,9,10,11,12}∪{1,4,5,6})={2,3}∪{1,4,5,6,7,8,9,10,11,12}
={1,2,3,4,5,6,7,8,9,10,11,12}........(1)
Now we find (A∪B)∪Cas follows:
(A∪B)∪C=({2,3}∪{6,7,8,9,10,11,12})∪{1,4,5,6}={2,3,6,7,8,9,10,11,12}∪{1,4,5,6}
={1,2,3,4,5,6,7,8,9,10,11,12}........(2)
Since equation 1 is equal to equation 2,
Hence, A∪(B∪C)=(A∪B)∪C