Complex sentence: The members of the society gain a special grant if they marry one of the members with the right heredity; the idea being to extend their lifespans.
Split into simpler sentences: The members of the society gain a special grant if they marry one of the members with the right heredity. The idea being to extend their lifespans.