the roof of an apartment building is rectangular and its length is 3 times longer than its width . if the area of the roof is 588 feet squared , what is the difference between the length and the width of the roof ?
import math
n0 = 3.0
n1 = 588.0
t0 = n1 / n0
t1 = math.sqrt(max(0, t0))
t2 = t1 * n0
answer = t2 - t1
print(answer)