Union and intersection of finite sets