Three kinds of fruits are shipped from the fruit wholesale station, among which 20 boxes are not apples, and 16 boxes are not pears. It is known that there are 12 boxes of apples and pears. How many boxes are there in total?
水果批发站运来三种水果，其中有20箱不是苹果，有16箱不是梨，已知苹果和梨共有12箱，一共有水果多少箱．
<gadget id="calculator">16 - 12</gadget>
<output>4</output>

<gadget id="calculator">20 + 4</gadget>
<output>24</output>

<gadget id="calculator">24 / 2</gadget>
<output>12</output>

<gadget id="calculator">12 + 12</gadget>
<output>24</output>

<result>24</result>