A ladder leaning against a building makes an angle of 78 degrees with the ground. The foot of the ladder is 5 feet from the building. How long is the ladder?