8. Spring has arrived, and the school has organized a spring outing for the students. However, due to certain reasons, the spring outing is divided into indoor and outdoor activities. The number of people participating in outdoor activities is 480 more than those participating in indoor activities. Now, if 50 people from the indoor activities are transferred to the outdoor activities, the number of people participating in outdoor activities will be exactly 5 times the number of people participating in indoor activities. Therefore, the total number of people participating in indoor and outdoor activities is ( ) people.