cardinality of two sets formula