Andrea has 8 more apples than Jamal and half as many bananas as Jamal. Jamal has 4 more bananas than apples. How many fruits are there if Andrea has 52 apples?
Since Andrea has 8 more apples than Jamal, if Andrea has 52 apples, Jamal has 52-8 = 
<gadget id="calculator">52-8</gadget>
<output>44</output>
44 apples.
The total number of apples is 44+52 = 
<gadget id="calculator">44+52</gadget>
<output>96</output>
96.
Jamal has 4 more bananas than apples, meaning he has 44+4 = 48 bananas.
Andrea has half as many bananas as Jamal, which totals 48/2 = 
<gadget id="calculator">48/2</gadget>
<output>24</output>
24 bananas.
There are a total of 48+24 = 
<gadget id="calculator">48+24</gadget>
<output>72</output>
72 bananas.
Altogether, there are 96 apples + 72 bananas = 
<gadget id="calculator">96+72</gadget>
<output>168</output>
168 fruits.

<result>168</result>