## Precalculus (10th Edition)

$17$
According to the counting formula we know that $n(A\cup B)=n(A)+n(B)-n(A\cap B).$ Hence here $n(A\cup B)=n(A)+n(B)-n(A\cap B)=8+12-3=17.$