
Let AB and CD be the multi-storeyed building and the building respectively.
Let the height of the multi-storeyed building = h m and
The distance between the two buildings = x m.
AE = CD = 8 m [Given]
BE = AB – AE = (h – 8) m
And AC = DE = x m [Given]
Also, ∠FBD = ∠BDE = 30° (Alternate angles)
∠FBC = ∠BCA = 45° (Alternate angles)
Now,
In Δ ACB,
tan 45° = \(\frac{AB}{AC}[∵tanθ=\frac{perpendicular}{Base}]\)
\(1=\frac{h}{x}\)
x = h ... (i)
In Δ BDE,
tan 30° = \(\frac{BE}{ED}\)
\(\frac{1}{\sqrt{3}}= \frac{h-8}{x}\)
x = \(\sqrt{3}(h - 8)\) ... (ii)
From (i) and (ii),
We get, h = √3h - 8√3
√3h – h = 8√3
h(√3 - 1) = 8√3

h- = 4√3(√3 + 1)
h = 12 + 4√3 m
Distance between the two building
\(x = (12+4\sqrt{3})m\) [From (i)]