There is a tree between houses of A and B. If the tree leans on A's house, the tree top rests on his window which is 12m from ground. If the tree leans of B's house, the tree top rests on his window which is 9m from ground. If the height of the tree is 15m, what is distance between A's and B's house?