A building casts a shadow 48 feet long. At the same time, a 40ft tall flagpole casts a shadow 9.6ft long. What is the height of the building?