It takes a considerable amount of work and there might be a better way to do this but I treated this game as an In/Out game. Rule 2 states there are exactly 3 Male Dorms leaving exactly 5 Female Dorms. Account for your rules/contrapositives and fill…