The total cost of the apples is 12 * $2 = $24
The total cost of the bananas is 4 * $1 = $4
The total cost of the oranges is 4 * $3 = $12
The total cost of all the fruit is $24 + $4 + $12 = $40
Marcia bought a total of 12 + 4 + 4 = 20 pieces of fruit
The average cost of each piece of fruit is $40 / 20 = $2
#### 2
The answer is: 2
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Marcia wants to buy some fruit. Apples cost $2, bananas cost $1, and oranges cost $3. If Marcia buys 12 apples, 4 bananas and 4 oranges, what is the average cost of each piece of fruit in dollars?

### Answer:
