Answer:
36 feet
Explanation:
This is a simple case of ratio and proportionality.
We can thing of it as "if x (height of building) casts a shadow of 24, then 6 casts a shadow of 4".
We can write this as:

We cross multiply and solve for x (height of the building in feet):

The height of building is 36 feet