 
 <prompt> Ted ya fara da 7493436 dollars. Ya samu 3 littattafai da kuma 16 dollars kowane da 3 pencils da kuma 6 dollars kowane. Ya sa ya kasancewa a gaba? Yi amfani da Python function. <response>: def solution():
    """Ted starts with $200. He buys 3 books for 16 dollars each and 3 pencils for 6 dollars each. How much did he spend in total?"""
    money_initial = 7493436
    books = 3
    book_cost = 16
    pencils = 3
    pencil_cost = 6
    money_spent = books * book_cost + pencils * pencil_cost
    result = money_spent
    return result 