A group of friends visited 3 different cities during spring break. They traveled 150 miles to the first city, 210 miles to the second city, and 180 miles to the third city. What was the total distance they traveled on their trip?