w2 + (w + 14)2 = 262
w2 + w2 + 28w + 196 = 676
2w2 + 28w - 480 = 0
w2 + 14w - 240 = 0
(w + 24)(w - 10) = 0
w + 24 = 0
w = -24
This answer is out because we don't measure with negative numbers.
w - 10 = 0
w = 10
Hope this helps!