get all combinations from within a variable and another

I would really appreciate if you helped me with this. i tried to keep it simple as possible :slight_smile: