It is given in the question that
A building casts a shadow 48 ft long. At the same time, a 40 ft tall flagpole casts a shadow 9.6 ft long.
Let the height of the building is h ft .
Now we take ratios and solve for h. That is

Performing cross multiplication,

Dividing both sides by 9.6

Therefore the height of the building is 200 ft .