Paityn has 20 red hats and 24 blue hats. Her friend Zola has 4/5 times as many red hats as she has and twice the number of blue hats. If they combine all the hats together and share them equally between themselves, calculate the number of hats each gets.
Paityn has a total of 20 hats + 24 hats = 
<gadget id="calculator">20+24</gadget>
<output>44</output>
44 hats.
The number of red hats that Zola has is 4/5 * 20 hats = 
<gadget id="calculator">4/5*20</gadget>
<output>16</output>
16 hats.
Zola also has 2 * 24 hats = 
<gadget id="calculator">2*24</gadget>
<output>48</output>
48 blue hats.
Zola has a total of 48 hats + 16 hats = 
<gadget id="calculator">48+16</gadget>
<output>64</output>
64 hats.
When they combine their hats, they have 64 hats + 44 hats = 
<gadget id="calculator">64+44</gadget>
<output>108</output>
108 hats.
If they share the hats equally, each get 108 hats / 2 people = 
<gadget id="calculator">108/2</gadget>
<output>54</output>
54 hats/person.

<result>54</result>