 
 <prompt> ```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? Think and write in python.```

```Andrea na-agụ ụtara 8 n'ime ụtara Jamal na nke abụọ nke ụtara Jamal. Jamal na-agụ ụtara 4 n'ime ụtara. Kedu ihe ọ bụla bụ nke Andrea na-eme ịhe ụtara ịfụ? Tinye na Python.``` <response>: def solution():
    """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?"""
    jamal_apples = 52 - 8
    jamal_bananas = (52 - 8) + 4
    andrea_bananas = jamal_bananas * 0.5
    andrea_apples = 52
    total_bananas = jamal_bananas + andrea_bananas
    total_apples = jamal_apples + andrea_apples
    total_fruits = total_bananas + total_apples
    result = total_fruits
    return result 