john builds a square with a side of 12 cm from some wire . if from the same wire , he builds a rectangle with a width of 6 cm , what will be the length of the rectangle ?
n0 = 12.0
n1 = 6.0
t0 = n1 * 2.0
t1 = 4 * n0
t2 = t1 - t0
answer = t2 / 2.0
print(answer)