if you draw the illustration of the problem, you can see that the building, the shadow, and the length of the shadow to the tip of the building is forming a right triangle. We can use pythagoreans theorem stating that a^2 + b^2 = c^2. In this case your side b is missing its value. Therefore we can rearrange the equation then it becomes b= √(c^2-a^2 )