Answer:
16.16 ft
Step-by-step explanation:
This problem can be represented with a right angled triangle.
We have the two sides and we need to find the hypotenuse of the triangle.
From the diagram below, the adjacent is the distance of the socket from the edge of the roof (6 ft) and the height of the roof is the opposite (15 ft).
We apply Pythagoras theorem<
[tex]hyp^2 = adj^2 + opp^2\\\\=> hyp^2 = 6^2 + 15^2\\\\hyp^2 = 261\\\\hyp = \sqrt{261}\\ \\hyp = 16.16 ft[/tex]
The extension cord should be 16.16 ft long.