If two men or two women can marry, then there is no way a court could deny three men and two women or any combination thereof.