formula for 3 overlapping sets - Search