How to group same points from different branches within the same tree and not loose the path information?

I know you’ve been at it for hrs, but please take a few minutes to post said tree.