It appears that you just added the 5 and the 12. Because the ground, the ladder, and the side of the building form a right triangle, you can use the Pythagorean Theorem. Use 5 and 12 as the two legs and L as the hypotenuse.