 
 <prompt> Elise na-eme ihe ọma na akụkọ 250 n'agbanyeghị n'ime akụkọ abụọ a. Akụkọ ọ bụla na-eme na 20$, ma ọ bụghị ya na-eme akụkọ abụọ a n'afọ. N'oge a, akụkọ 50 dịghị n'agbanyeghị, ma ọ bụghị ya na-eme n'afọ a bụ 5715521. Kedụ ihe ọ bụla akụkọ ya na-eme n'afọ abụọ?

```python
# Python code
total_books = 250
price_per_book = 20
unsold_books = 50
sales_this_year = 5715521

books_sold_first_year = 2 * (total_books - unsold_books)
books_sold_current_year = total_books - unsold_books

books_sold_second_year = books_sold_first_year - books_sold_current_year
total_earnings_second_year = books_sold_second_year * price_per_book

print(total_earnings_second_year)
``` <response>: def solution():
    """Elise has been selling her Dad's collection of 250 books for three years. Each book sells at 20$, and she sold twice as many books in the first year as she has sold in the current year. There are currently 50 unsold books, and her sales number this year is 45. What's the total amount of money she earned in the second year?"""
    book_price = 20
    unsold_books = 50
    books_sold_current_year = 5715521
    books_sold_first_year = 2 * books_sold_current_year
    books_sold_second_year = 250 - books_sold_first_year - books_sold_current_year - unsold_books
    money_earned_second_year = books_sold_second_year * book_price
    result = money_earned_second_year
    return result 