A certain truck traveling at 55 miles per hour gets 4.5 miles per gallon of diesel fuel consumed. Traveling at 60 miles per hour, the truck gets only 3.5 miles per gallon. On a 500-mile trip, if the truck used a total of 120 gallons of diesel fuel and traveled part of the trip at 55 miles per hour and the rest at 60 miles per hour, how many miles did it travel at 55 miles per hour?