The shadow of the building will look like a right triangle. In this problem, the hypotenuse of the triangle is 25 meters, and one of the sides is 15 meters. What we are trying to find is the length of the other side.
We can do this by using pythagoreans theorem.
So, the last side (or the height of the building) is 20 meters.