Joint distribution of a tree shape and RF distance