For the width of the mural we will use "w".
Therefore the height h = w -7.
Drawing a diagonal into a rectangle creates two right triangle that both have the that diagonal as their hypotenuse. A right triangle follows the Pythagorean Theorem of a2 + b2 = c2
Now we can put it together...
w2 + (w-7)2 = 172
w2 + (w-7)(w-7) = 172
w2 + w2-14w +49 = 172
2w2 -14w +49 = 172
2w2 -14w +49 = 289
2w2 -14w -240 = 0
From the form ax2 + bx +c = 0 (as used above) we get a = 2; b = -14 ; c = -240
Now we can use the quadratic formula to solve...
-b ± √(b2 - 4ac)
x = -------------------------
2a
14 + √( 196 + 1920)
x = ------------------------------
4
14 + √2116
x = ------------------
4
14 + 46
x = ------------
4
60
x = ----- = 15
4
This "x" represents the "w" from our initial Pythagorean setup, which means our rectangle is 15 wide and 15 - 7 = 8 tall.
Verify...
a2 + b2 = c2
152 + 82 = 172
225 + 64 = 289
Checks out!