 
 <prompt> If Marcy work for di same company for 40 years, she go get annual pension of $50,000/year. Starting after 20 years, she go dey entitled to 5% of di value of di pension per year. If she resign after 30 years, wetin go be her annual pension? Solve with Python. <response>: ```
def solution():
    """If Marcy works for di same company for 40 years, she go get annual pension of $50,000/year. Starting after 20 years, she go dey entitled to 5% of di value of di pension per year. If she comot after 30 years, wetin go be her annual pension?"""
    pension_yearly = 50000
    years_worked = 30
    years_to_wait = 20
    percent_to_receive = 0.05  # 5%
    years_to_receive = years_worked - years_to_wait
    pension_per_year = percent_to_receive * pension_yearly * years_to_receive
    result = pension_per_year
    return result
``` 