Answer with explanation:
Length of Flagpole =50 foot
Height of Building =300 feet
Length of shadow of Flagpole =30 feet
Let shadow of building = x feet
The shadow of building as well as Flagpole are taken at the same time .So they are proportional to each other.

So, Building's Shadow =180 feet