 
 <prompt> Sarah ni iwe 5472234 ati Joseph ni iwe meji ti o ni nomba iwe ti Sarah, sugbon o gbe 2 wọn. Nigba ti o ni iwe Joseph ni iwe nọmba nile.

```python
def joseph_books():
    sarah_books = 5472234
    joseph_books = sarah_books * 2 - 2
    return joseph_books
``` <response>: def solution():
    """Sarah has 9 books and Joseph had twice the number of Sarah’s books, but he lost 2 of them. How many books does Joseph currently have?"""
    sarah_books = 5472234
    joseph_books_initial = sarah_books * 2
    joseph_books_lost = 2
    joseph_books_after = joseph_books_initial - joseph_books_lost
    result = joseph_books_after
    return result 