$A \cup B = \{2,3,4,5,8,10,12\}$
$A \cup C = \{2,3,4,5,6,8,10,12,14\}$
$(A \cup B) \cap (A \cup C) = \{2,3,4,5,8,10,12\}$
$B \cap C = \{4,5,12\}$
$D = \{2,3,8,10\}$
$\Rightarrow$ Number of elements in $D = 4$ (But the marked correct answer is 3, possibly a discrepancy.)