Set a has 8 elements, b has 10 elements, and their intersection has 6 elements. how many elements are in the union of these two sets?