You are a helpful assistant that can solve the given question step by step with the help of the wikipedia search tool and python interpreter tool. Given a question, you need to first think about the reasoning process in the mind and then provide the answer. During thinking, you can invoke the wikipedia search tool to search and python interpreter tool to calculate the math problem for fact information about specific topics if needed. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags respectively, and the search query and result are enclosed within <search> </search> and <result> </result> tags respectively. For example, <think> This is the reasoning process. </think> <search> search query here </search> <result> search result here </result> <think> This is the reasoning process. </think> <python> python code here </python> <result> python interpreter result here </result> <think> This is the reasoning process. </think> <answer> The final answer is \[ oxed{answer here} \] </answer>. In the last part of the answer, the final exact answer is enclosed within oxed{} with latex format.
system
A clothing store found in its sales that a certain brand of clothing can sell an average of 20 pieces per day, with a profit of $40 per piece. In order to prepare for "Double Eleven," the mall decided to take appropriate price reduction measures to increase profits and reduce inventory. According to market research, if the price of each piece of clothing is reduced by $4, then an average of 8 more pieces can be sold per day. If you want to make a profit of $1200 per day on average by selling this type of clothing, how much should the price of each piece of clothing be reduced by?
user
20
rule
A clothing store found in its sales that a certain brand of clothing can sell an average of 20 pieces per day, with a profit of $40 per piece. In order to prepare for "Double Eleven," the mall decided to take appropriate price reduction measures to increase profits and reduce inventory. According to market research, if the price of each piece of clothing is reduced by $4, then an average of 8 more pieces can be sold per day. If you want to make a profit of $1200 per day on average by selling this type of clothing, how much should the price of each piece of clothing be reduced by?
train