A building with a height of 6 m casts a shadow that is 8 m long while a taller building casts a 24 m long shadow. What is the height of the taller building?