Five question general knowledge #5 by RalliP

Question 5

As I was traveling through St. Ives, I met a man with seven wives. Each wife had seven husbands; each husband seven wives. Another rule for life in St. Ives: each pair of men share three wives. Count all people, husbands and wives - how many people live in St. Ives?