So we have the sentences translated to equations as
l=9+w
A=lw=360
substitute the first equation into the second to have
(9+w)w=360
Rewriting into quadratic form
w2+9w-360=0
(W+24)(w-15)=0
w=15,-24 but length must be greater than 0 so we have the w=15
so l=24 by substitution.