First, let's draw a scheme representing the measures in the text. Let's call the shorter building as A and the taller building as B.
Using this scheme, we can see that we have 2 right triangles. The height of the taller building(let's call it hB), is given by the following relation
![\frac{h_B_{}}{67}=\tan 39^o](https://img.qammunity.org/2023/formulas/mathematics/college/ttm477jljeaq3hae9jxjjkrpa9ipj56c8l.png)
Then, calculating the height we have
![\begin{gathered} h_B=67\tan 39^o=67*0.80978403319\ldots=54.2555302241 \\ h_B\approx54.3 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/h797hhpxetl7h9uyvtfp4uv1r5fpvdter5.png)
The difference between the height of the smaller building(let's call it hA) and the taller building, is given by
![((h_B-h_A))/(67)=\tan 27^o](https://img.qammunity.org/2023/formulas/mathematics/college/1ha41r8vzuj8ghd8ufofq6uw9tzt5beyu1.png)
Solving for h_A, we have
![\begin{gathered} ((h_B-h_A))/(67)=\tan 27^o \\ (h_B-h_A)=67\tan 27^o \\ h_A=h_B-67\tan 27^o \\ h_A\approx20.1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/md7t22dsr8aqil87s65x1nyx3zo37yp0u8.png)
The height of the smaller building is 20.1m and the height of the taller building is 54.3m.