We can use proportions to find the length of the building's shadow. Let x be the length of the building's shadow. Then, we have:
5/3 = 45/x
To solve for x, we can cross-multiply and simplify:
5x = 135
x = 27
Therefore, the length of the building's shadow is 27 feet, which is option D.