A man and his wife had three children: John, Ben and Mary, and the difference between their parents' ages was the same as between John and Ben and between Ben and Mary. The ages of John and Ben multiplied together equalled the age of the father, and the ages of Ben and Mary multiplied together equalled the age of the mother. The ages of the whole family equalled ninety years. What was the age of each member of the family?