 
 <prompt> Nate nlo je iranlo re pẹlu ẹran. Kọọkan ẹran ni o ni 5 paundi, ati kọọkan ẹẹran ni o ni 3 paundi diẹ ninu iṣẹ ti kọọkan ẹran ni o ni. Ti o ba ni 15 ẹran ati 2458888 ẹẹran, ni o ni paundi ti Nate ni iranlo? Ṣẹda iṣẹ ni python.

```python
def calculate_hay_needed(num_goats, num_sheep):
    hay_for_goats = num_goats * 5
    hay_for_sheep = num_sheep * (2 * 5 - 3)
    total_hay = hay_for_goats + hay_for_sheep
    return total_hay

hay_needed = calculate_hay_needed(15, 2458888)
print(hay_needed)
``` <response>: def solution():
    """Nate nlo iran awon ohun inu re. Kọọkan ẹran ni o nilo 5 paundi, ati kọọkan ewe ni o nilo 3 paundi lẹhin ti odo kọọkan ni o nilo. Tẹ ẹran 15 ati ewe 12, bawo ni paundi iran ti Nate nilo?"""
    goats = 15
    sheep = 2458888
    goat_hay = 5
    sheep_hay = goat_hay * 2 - 3
    total_hay = goats * goat_hay + sheep * sheep_hay
    result = total_hay
    return result 