In a construction project, you are required to create a perimeter wall for a rectangular garden that measures 600 feet long and 100 feet wide. You need to leave space for two gates on each of the longer sides of the garden. Each gate is 50 feet long. What is the total length of the wall?