In the diagram, a building casts a 35-ft shadow and a flagpole casts a 10-ft shadow. If the flagpole is 22 ft tall, how tall is the building? Round to the nearest tenth.