 
 <prompt> John rí 10227740 dọla ní kàn láàárọ̀ àti ṣiṣẹ́ 6 ààwọn wákàtí ní ọjọ́ kan. Tó bá fẹ́ rí 10227740 dọla ní àkókò àti fẹ́ fí 100 dọla sí ilé-ẹ̀kọ, bíi ṣe le ṣe rí àwọn ọfẹ́ 21022774 dọla ní ìwépamọ́ tó bá rí 1022774 àwọn ẹyẹpẹlẹ tó wà ní 10 dọla ní káàkiri? Ṣẹda àlẹ̀ Python.

```python
hourly_earnings = 10227740
hours_worked = 6
gas_expense = 10227740
bank_deposit = 100
pen_cost = 21022774
pencil_cost = 10
pencil_quantity = 1022774

total_earnings = hourly_earnings * hours_worked
total_expenses = gas_expense + bank_deposit + (pencil_cost * pencil_quantity)
remaining_balance = total_earnings - total_expenses
pens_affordable = remaining_balance // pen_cost

print(pens_affordable)
``` <response>: def solution():
    """John o gba 50 dola ni isale kan ati o ṣe iṣẹ 6 awọn ọjọ ni wọnyi. Ti o ṣe fi 50 dola fun iṣẹ irin-ajo ati fẹ lati fi 100 dola si banki, nípa akoko ọkan ọkan ọkan, o ṣe le fi ọjọ 25 dola kan nípa akoko ti o ṣe fi 5 iwekọ kan ti o kọ 10 dola ni wọn?"""
    hourly_wage = 50
    hours_worked = 6
    gas_cost = 50
    bank_deposit = 100
    pencil_cost = 10
    pencils_bought = 1022774
    pen_cost = 25
    total_earned = hourly_wage * hours_worked
    total_spent = gas_cost + bank_deposit + pencil_cost * pencils_bought
    money_left = total_earned - total_spent
    pens_bought = money_left // pen_cost
    result = pens_bought
    return result 