During Jamhuri day there were 4867 people in a stadium X and 5026 people in stadium Y. How many people were there in the two stadiums altogether?