Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
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.

### Response:
The number of red hats that Zola has is 4/5*20 = <<4/5*20=16>>16 hats
Zola also has 2*24 = <<2*24=48>>48 blue hats, twice the number Paityn has.
Together, Zola has 48+16 = <<48+16=64>>64 hats.
When Paityn also adds her hats, they have 64+20+24 = <<64+20+24=108>>108 hats
If they share the hats equally, each get 108/2 = <<108/2=54>>54 hats
#### 54