A solution to a series quesitions regarding tree and path