We know that the compliment of set A is A′=U−A.
The given sets are U={1,2,3,4,5,6,7,8}, A={1,2,3} and B={2,3,4,5}
Consider the following:
(A∪B)′=U−(A∪B)={1,2,3,4,5,6,7,8}−[{1,2,3}∪{2,3,4,5}]={1,2,3,4,5,6,7,8}−{1,2,3,4,5}
={6,7,8}......(1)
A′∩B′=[U−A]∩[U−B]=[{1,2,3,4,5,6,7,8}−{1,2,3}]∩[{1,2,3,4,5,6,7,8}−{2,3,4,5}]
={4,5,6,7,8}∩{1,6,7,8}={6,7,8}......(2)
From equations 1 and 2, we get that (A∪B)′=A′∩B′.
Hence, (A∪B)′=A′∩B′.