Concept:The ball's vertical motion is independent of horizontal. The time to reach maximum height gives the initial vertical velocity, and the vertical displacement at landing time gives the building height.Formula:vy=uy−gt and y=uyt−21gt2.Solution:Given angle θ=45∘, time to max height tmax=2 s, total flight time to building t=3 s, g=10m/s2.At maximum height, vertical velocity vy=0. Using vy=uy−gtmax: 0=uy−(10)(2) ⇒ uy=20 m/s.Now, vertical displacement when ball lands is H. Using y=uyt−21gt2 at t=3 s: H=(20)(3)−21(10)(3)2=60−45=15 m.