Common ancestor tree problem.