A body is projected vertically upwards from the ground such that its speed at half the maximum height is 20m/s. Find the maximum height attained by it.