The length of the garden is 160 feet.
The reason is, since both sides of the width equal out to 180 feet, (there are 2 sides of 90 feet) both sides of 160 feet is 320 feet, and all there is left is simple addition: 320 feet + 180 feet = 500 feet. Thank you and I hope this helps.