if 3 nums of 1st parameter are same and 2 nums of 2nd parameter are same return 1