a rectangular tiled patio is composed of 96 square tiles . the rectangular patio will be rearranged so that there will be 2 fewer columns of tiles and 4 more rows of tiles . after the change in layout , the patio will still have 96 tiles , and it will still be rectangular . how many rows are in the tile patio before the change in layout ?
import math
n0 = 96.0
n1 = 2.0
n2 = 4.0
n3 = 96.0
t0 = n0 * n1
t1 = -n2
t2 = n2**min(n1, 5)
t3 = n2 * t0
t4 = t3 + t2
t5 = math.sqrt(max(0, t4))
t6 = t1 + t5
t7 = t6 / n1
answer = n0 / t7
print(answer)