a rectangle measures 8 cm on length and its diagonal measures 17 cm . what is the perimeter of the rectangle ?
import math
n0 = 8.0
n1 = 17.0
t0 = n1**min(2.0, 5)
t1 = n0**min(2.0, 5)
t2 = t0 - t1
t3 = math.sqrt(max(0, t2))
answer = 2 * (n0 + t3)  # perimetere of rectangle
print(answer)