The height of the second building H = h + 24
tan θ = oppadj
tan 30o=hx
implies√33=hx
impliesx=√3=3h
impliesx=3h√3 ....(i)
tan 60o=24x
implies√3=24x
impliesx√3=24
impliesx=24√3 ....(ii)
Equate equation (i) and (ii)
implies3h√3=24√3
implies 3h = 24
impliesh=243 = 8m
∴The height of the second building = 8 + 24 = 32m