To solve the problem, we can use similar triangles. Let x be the length of the shadow on the wall. Then we have:
x/45 = 12/15
Cross-multiplying, we get:
15x = 45 * 12
Simplifying, we get:
15x = 540
Dividing both sides by 15, we get:
x = 36
Therefore, the length of the shadow on the wall is 36 inches