To find out how many passengers were on the bus after the three stops, we can follow these steps:
1. Initially, the bus had 10 passengers.
2. At the first stop, 8 people got on, so the total number of passengers became 10 (initial) + 8 (got on) = 18 passengers.
3. Three people got off at the first stop, leaving 18 - 3 = 15 passengers on the bus.
4. At the third stop, 5 people got on, bringing the total to 15 (remaining) + 5 (got on) = 20 passengers.
5. Twelve people got off at the third stop, so the final count would be 20 - 12 = 8 passengers on the bus after the three stops.
Therefore, after the first stop, the bus had 15 passengers, and after the third stop, it had 8 passengers.