A ball is thrown vertically upwards from the top of a building of height H. It goes to a height of 20m and then comes back to the ground. Time taken by the ball to reach the maximum height from the top of the building is half of the time taken to reach the ground from the maximum height. What is the height of the building? (Take g=10ms−2)