We study the formation of coalitions that provide public goods to members. Individuals are linked on a tree graph and those with similar preferences are connected on the tree. We present a well-defined solution that selects envy-free allocations from the core