<|im_start|>system
You are a helpful assistant. You first think about the reasoning process in the mind and then provide the user with the answer. You should try to truely solve the question by yourself without cheating.  <|im_end|>
<|im_start|>user
 There are some apples and some pears. If 5 apples and 3 pears are packed in each bag, then when the pears are exactly packed up, there are 4 apples left. If 7 apples and 3 pears are packed in each bag, then when the apples are exactly packed up, there are 12 pears left. How many apples and pears are there in total? Show your work in <think> </think> tags. And return the final answer in <answer> </answer> tags.<|im_end|>
<|im_start|>assistant
Let me solve this step by step.
<think>
user
112
There are some apples and some pears. If 5 apples and 3 pears are packed in each bag, then when the pears are exactly packed up, there are 4 apples left. If 7 apples and 3 pears are packed in each bag, then when the apples are exactly packed up, there are 12 pears left. How many apples and pears are there in total?
test