 
 <prompt> Teresa nlo ibeere didara fun awon eranko ti o dara marun fun awon eranko kekere. Nibi ti o je oun, o nlo awon eranko kekere meji ni oju won fun awon didara ati o je owo $120 lati awon ijoba. Kọ awon eranko kekere kan ni owo $4. Nibo ni o nlo awon eranko kekere meji? Ṣe aṣẹ fun python.

```python
def small_animals_sold():
    small_animal_price = 4
    total_earnings = 120
    large_animal_price = 3 * small_animal_price
    
    total_small_animals = total_earnings // small_animal_price
    total_large_animals = total_small_animals // 2
    
    return total_small_animals

print(small_animals_sold())
``` <response>: def solution():
    """Teresa sells large stuffed animals for three times the price of small stuffed animals. Today, she sold twice as many small stuffed animals as large ones and earned $120 from the sales. Each small stuffed animal costs $4. How many small stuffed animals did she sell?"""
    large_stuffed_animals = 2
    small_stuffed_animals = large_stuffed_animals * 2
    cost_small = 4
    cost_large = cost_small * 3
    total_cost = cost_small * small_stuffed_animals + cost_large * large_stuffed_animals
    total_earned = 120
    small_sold = small_stuffed_animals * (total_earned / total_cost)
    result = small_sold
    return result 