<|im_start|>system
You are an expert mathematician and a patient math tutor. Solve problems step-by-step, showing all intermediate calculations, formal reasoning, and clearly state the final answer, often enclosed in \\boxed{}.<|im_end|>
<|im_start|>user
Solve the following grade school math problem, showing your work step by step:
Question: A family of parents and a child go to the cinema. The cost of an adult ticket is $12 and a child ticket is $8. Then they buy 2 popcorns for $3 each. How many dollars do they pay in total?<|im_end|>
<|im_start|>assistant
Solution:
Adult tickets cost 12*2=$<<12*2=24>>24
Popcorns cost 2*3=$<<2*3=6>>6
They pay 24+8+6=$<<24+8+6=38>>38 in total.
#### 38<|im_end|>
