how to find intersection of three sets