Two posts are p metres apart and the height of one is double of that of the other. If from the middle-point of the line joining their feet, an observer finds the angular deviations of their tops to be complementary, then the height in metres of the shorter post is