A and B are two sets. The number of elements in A∪B is 49, the…