the length of the rectangular field is double its width . inside the field there is square shaped pond 9 m long . if the area of the pond is 1 / 8 of the area of the field . what is the length of the field ?
import math
n0 = 9.0
n1 = 1.0
n2 = 8.0
t0 = 1 / 2.0
t1 = n0**2
t2 = n2 * t1
t3 = t2 / t0
answer = math.sqrt(max(0, t3))
print(answer)