A baseball coach takes his team out for pizza every time they win a game. Not everyone can come each time, so he orders the pizzas based on how many players are coming. After last week's victory, he bought 2 small pizzas and 2 large pizzas, the perfect amount for the 18 players going out for pizza. This week, there were 12 players going, so he ordered 2 small pizzas and 1 large pizza, which was also just the right amount. How many people does each size of pizza feed?