Concept:The size of a union of two sets is found by adding their individual sizes and subtracting the size of their intersection.Explanation:We are given n(X)=15, n(Y)=12, and n(X∩Y)=7.Use the formula:n(X∪Y)=n(X)+n(Y)−n(X∩Y)Substitute the given values:n(X∪Y)=15+12−7n(X∪Y)=20Answer:n(X∪Y)=20, so the correct option is D.