Partitons of vertices and facets in trees and stacked simplicial complexes