How do you get a geologist or miner out of a tree?
Cut the rope.
Yuk yuk.
I notice you haven't solved the problem of getting either one up there. (hint: Bring lots of friends and pack more than just your lunch--with the economy what it is, we can always use the extra food.)