Let's call the height the 8-foot ladder reaches on the wall "h1", and the height the 15-foot ladder reaches on the wall "h2". We can set up a proportion to find h2, using the heights and lengths of the ladders:
(h2 + 5) / 15 = (h1 + 5) / 8
We can cross multiply to solve for h2:
15 * (h1 + 5) = 8 * (h2 + 5)
120 + 75 = 8h2 + 40
195 = 8h2 + 40
155 = 8h2
h2 = 19.375 feet
So the 15-foot ladder reaches 19.375 feet up the wall