Name a trade and it finds the families inside it, then follows the longest line as far as the record goes.