If a ladder is leaning against a wall such that it forms an angle of 60 degrees with the ground and the top of the ladder reaches a height of 10 meters up the wall, find the length of the ladder. Use the fact that the cosine of 60 degrees is 1/2. Let's think step by step and output the final answer within \boxed{}.
user