I am learning about Set Theory currently. However, my teacher neglected to explain a concept that has shown up on one of the assigned proofs in the homework. The concept I'm struggling with is doing a proof with representation of the numbers in an element A for example. The proof is:
If $A$ is a set, then let $n(A)$ represent the number of elements in a finite set $A$ Prove that: $$n(A\cup B) = n(A) + n(B) - n(A\cap B).$$
I understand how to prove a regular set theory proof: such as maybe prove that $A \cap (B \cup C) = (A \cap B) \cup (A \cap C)$. You just need to use the definitions of intersection, union, etc. to convert these set statements into their logically equivalent counterparts. I just don't understand what is meant by the proof above. Thank you for your help. It's appreciated.