Tom is driving towards a building. When he first looks up at the top of the building, he looks up at an angle of elevation of 47 degrees. After driving 500 feet towards the building, he is now looking up at an angle of elevation of 54 degrees. How tall is the building?