A body is projected at an angle of 45^∘ with horizontal from a point on ground at distance 6m from the foot of a vertical pole. It just crosses the top of the pole and falls on ground on the other side at a distance of 3 m from the foot of the pole. The height of the pole is: