Since the ratio for height to length is 3:20 and the wall is 40 feet long, we know that it is multiplied by 2 from the ratio. Therefore we can multiply the height ratio by two to get the answer. Since the height ratio is 3, 3*2=6, therefore the height is 6.