Hi Viviana,
The formula for the nth term of an arithmetic sequence is: an = a1 + (n - 1)*d.
The formula for the arithmetic sum is Sn = n(a1 + an)/2.
Substituting the arithmetic sequence an into Sn:
Sn = n(a1 + [a1 + (n - 1)*d])/2
With a1 = 18; d = 4; Sn = 1218
1218 = n(18 + [18 +(n - 1)*4])/2
1218 = n(36 + 4n - 4)/2
1218 = 2n2 + 16n
2n2 + 16n -1218 = 0, you can solve this.
n = 21 and -29
The architect will need 21 rows.
I hope this helps, Joe.