The length of a ladder is exactly equal to the height of the wall it is leaning against. If the lower end of the ladder is kept on a bench of height 3 m. and the bench is kept 9 m. away from the wall, the upper end of the ladder coincides with the top of the wall. The height of the wall is