4
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
A 12-slice pizza was made with only pepperoni and mushroom toppings, and every slice has at least one topping. Only six slices have pepperoni, and exactly ten slices have mushrooms. How many slices have both pepperoni and mushrooms?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
4
A 12-slice pizza was made with only pepperoni and mushroom toppings, and every slice has at least one topping. Only six slices have pepperoni, and exactly ten slices have mushrooms. How many slices have both pepperoni and mushrooms?
train