According to the data given in the table:
The people of who were riding the bus are 27 students and 42 workers. Similarly, the people who were riding the Subway were 21 students and 76 workers.
Therefore, the total number of people either riding the bus or the subway can be calculated as:
Total = 27 + 42 + 21 + 76
Total = 166 people.