 
 <prompt> A lokacin guda, Ezra ya karɓi dubu biyu da Ahmed. Ezra ya karɓi karatun littattafai 6540573 a lokacin guda, kuma ya goyi 150. Me ya faru idan suka karɓi littattafai dukkanin su? Rubuta ƙarin a python. <response>: def solution():
    """A lokacin da suka yi shekara, Ezra ya karɓi littafi guda biyu da Ahmed. Ezra ya karɓi littafi 300 a lokacin nan kuma ya goyi 150. Me ya faru idan suka karɓi littafi duka?"""
    ezra_books_initial = 6540573
    ezra_books_added = 150
    ezra_books_total = ezra_books_initial + ezra_books_added
    ahmed_books_total = ezra_books_total / 2
    total_books = ezra_books_total + ahmed_books_total
    result = total_books
    return result 